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
2bdf9fe0
Commit
2bdf9fe0
authored
Jun 18, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call sys.exit() directly from do_exit() (#253)
parent
7ddd6400
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
pronsole.py
pronsole.py
+3
-5
No files found.
pronsole.py
View file @
2bdf9fe0
...
@@ -1287,10 +1287,10 @@ class pronsole(cmd.Cmd):
...
@@ -1287,10 +1287,10 @@ class pronsole(cmd.Cmd):
print
"Are you sure you want to exit while printing?"
print
"Are you sure you want to exit while printing?"
print
"(this will terminate the print)."
print
"(this will terminate the print)."
if
not
self
.
confirm
():
if
not
self
.
confirm
():
return
False
return
self
.
log
(
_
(
"Exiting program. Goodbye!"
))
self
.
log
(
_
(
"Exiting program. Goodbye!"
))
self
.
p
.
disconnect
()
self
.
p
.
disconnect
()
return
True
sys
.
exit
()
def
help_exit
(
self
):
def
help_exit
(
self
):
self
.
log
(
_
(
"Disconnects from the printer and exits the program."
))
self
.
log
(
_
(
"Disconnects from the printer and exits the program."
))
...
@@ -1474,9 +1474,7 @@ class pronsole(cmd.Cmd):
...
@@ -1474,9 +1474,7 @@ class pronsole(cmd.Cmd):
line
=
raw_input
(
self
.
prompt
)
line
=
raw_input
(
self
.
prompt
)
except
EOFError
:
except
EOFError
:
print
""
print
""
should_exit
=
self
.
do_exit
(
""
)
self
.
do_exit
(
""
)
if
should_exit
:
exit
()
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
print
""
print
""
line
=
""
line
=
""
...
...
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