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
38dcbae5
Commit
38dcbae5
authored
Oct 11, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use printcore errorcb in pronsole
parent
585bad62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
pronsole.py
printrun/pronsole.py
+10
-1
No files found.
printrun/pronsole.py
View file @
38dcbae5
...
@@ -246,6 +246,7 @@ class Settings(object):
...
@@ -246,6 +246,7 @@ class Settings(object):
self
.
_add
(
StringSetting
(
"slicecommand"
,
"python skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py $s"
,
_
(
"Slice command"
),
_
(
"Slice command"
),
"External"
))
self
.
_add
(
StringSetting
(
"slicecommand"
,
"python skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py $s"
,
_
(
"Slice command"
),
_
(
"Slice command"
),
"External"
))
self
.
_add
(
StringSetting
(
"sliceoptscommand"
,
"python skeinforge/skeinforge_application/skeinforge.py"
,
_
(
"Slicer options command"
),
_
(
"Slice settings command"
),
"External"
))
self
.
_add
(
StringSetting
(
"sliceoptscommand"
,
"python skeinforge/skeinforge_application/skeinforge.py"
,
_
(
"Slicer options command"
),
_
(
"Slice settings command"
),
"External"
))
self
.
_add
(
StringSetting
(
"final_command"
,
""
,
_
(
"Final command"
),
_
(
"Executable to run when the print is finished"
),
"External"
))
self
.
_add
(
StringSetting
(
"final_command"
,
""
,
_
(
"Final command"
),
_
(
"Executable to run when the print is finished"
),
"External"
))
self
.
_add
(
StringSetting
(
"error_command"
,
""
,
_
(
"Error command"
),
_
(
"Executable to run when an error occurs"
),
"External"
))
self
.
_add
(
HiddenSetting
(
"project_offset_x"
,
0.0
))
self
.
_add
(
HiddenSetting
(
"project_offset_x"
,
0.0
))
self
.
_add
(
HiddenSetting
(
"project_offset_y"
,
0.0
))
self
.
_add
(
HiddenSetting
(
"project_offset_y"
,
0.0
))
...
@@ -365,6 +366,7 @@ class pronsole(cmd.Cmd):
...
@@ -365,6 +366,7 @@ class pronsole(cmd.Cmd):
self
.
recvlisteners
=
[]
self
.
recvlisteners
=
[]
self
.
in_macro
=
False
self
.
in_macro
=
False
self
.
p
.
onlinecb
=
self
.
online
self
.
p
.
onlinecb
=
self
.
online
self
.
p
.
errorcb
=
self
.
logError
self
.
fgcode
=
None
self
.
fgcode
=
None
self
.
listing
=
0
self
.
listing
=
0
self
.
sdfiles
=
[]
self
.
sdfiles
=
[]
...
@@ -406,7 +408,14 @@ class pronsole(cmd.Cmd):
...
@@ -406,7 +408,14 @@ class pronsole(cmd.Cmd):
print
u""
.
join
(
unicode
(
i
)
for
i
in
msg
)
print
u""
.
join
(
unicode
(
i
)
for
i
in
msg
)
def
logError
(
self
,
*
msg
):
def
logError
(
self
,
*
msg
):
logging
.
error
(
u""
.
join
(
unicode
(
i
)
for
i
in
msg
))
msg
=
u""
.
join
(
unicode
(
i
)
for
i
in
msg
)
logging
.
error
(
msg
)
if
not
self
.
settings
.
error_command
:
return
run_command
(
self
.
settings
.
error_command
,
{
"$m"
:
msg
},
stderr
=
subprocess
.
STDOUT
,
stdout
=
subprocess
.
PIPE
,
blocking
=
False
)
def
promptf
(
self
):
def
promptf
(
self
):
"""A function to generate prompts so that we can do dynamic prompts. """
"""A function to generate prompts so that we can do dynamic prompts. """
...
...
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