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
83bdc4e8
Commit
83bdc4e8
authored
May 29, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup exit behavior and stop eating all errors in pronsole
parent
e0e0f8c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pronsole.py
pronsole.py
+5
-3
No files found.
pronsole.py
View file @
83bdc4e8
...
...
@@ -17,7 +17,7 @@
import
cmd
,
sys
import
glob
,
os
,
time
,
datetime
import
sys
,
subprocess
import
sys
,
subprocess
,
traceback
import
math
,
codecs
import
shlex
from
math
import
sqrt
...
...
@@ -1210,7 +1210,6 @@ class pronsole(cmd.Cmd):
print
"Setting bed temp to 0"
self
.
p
.
send_now
(
"M140 S0.0"
)
self
.
log
(
"Disconnecting from printer..."
)
print
self
.
p
.
printing
if
self
.
p
.
printing
:
print
"Are you sure you want to exit while printing?"
print
"(this will terminate the print)."
...
...
@@ -1434,6 +1433,9 @@ if __name__ == "__main__":
interp
.
parse_cmdline
(
sys
.
argv
[
1
:])
try
:
interp
.
cmdloop
()
except
SystemExit
:
interp
.
p
.
disconnect
()
except
:
print
_
(
"Caught an exception, exiting:"
)
traceback
.
print_exc
()
interp
.
p
.
disconnect
()
#raise
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