Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
f2155380
Commit
f2155380
authored
Jun 04, 2011
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from k-eex/master
bugfixes for .pronsolerc handling
parents
718eaf5c
1a37c6ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.pronsolerc
.pronsolerc
+2
-2
pronsole.py
pronsole.py
+1
-1
No files found.
.pronsolerc
View file @
f2155380
# Sample .pronsolerc file - copy this into your home directory
alias up move Z 10
alias loud !self.loud = 1
alias quiet !self.loud = 0
alias loud !self.
p.
loud = 1
alias quiet !self.
p.
loud = 0
alias home_all G28
pronsole.py
View file @
f2155380
...
...
@@ -132,7 +132,7 @@ class pronsole(cmd.Cmd):
try
:
with
open
(
os
.
path
.
join
(
os
.
path
.
expanduser
(
"~"
),
".pronsolerc"
))
as
rc
:
for
rc_cmd
in
rc
:
if
rc_cmd
.
lstrip
()[
0
]
!=
"#"
:
if
not
rc_cmd
.
lstrip
()
.
startswith
(
"#"
)
:
self
.
onecmd
(
rc_cmd
)
except
IOError
:
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment