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
f23db989
Commit
f23db989
authored
Mar 29, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add run_script host command (#451, #483)
parent
5ed53448
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pronsole.py
printrun/pronsole.py
+8
-0
No files found.
printrun/pronsole.py
View file @
f23db989
...
...
@@ -1781,6 +1781,14 @@ class pronsole(cmd.Cmd):
self
.
log
(
_
(
"G-Code calling host command
\"
%
s
\"
"
)
%
command
)
self
.
onecmd
(
command
)
def
do_run_script
(
self
,
l
):
p
=
run_command
(
l
,
{
"
%
s"
:
str
(
self
.
filename
)},
stdout
=
subprocess
.
PIPE
)
for
line
in
p
.
stdout
.
readlines
():
self
.
log
(
"<< "
+
line
.
strip
())
def
help_run_script
(
self
):
self
.
log
(
_
(
"Runs a custom script. Current gcode filename can be given using
%
s token."
))
def
do_run_gcode_script
(
self
,
l
):
p
=
run_command
(
l
,
{
"
%
s"
:
str
(
self
.
filename
)},
stdout
=
subprocess
.
PIPE
)
for
line
in
p
.
stdout
.
readlines
():
...
...
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