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
748d0e65
Commit
748d0e65
authored
Apr 04, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align formatting token for run_script to $s for current filename
parent
0699cfc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pronsole.py
printrun/pronsole.py
+4
-4
No files found.
printrun/pronsole.py
View file @
748d0e65
...
@@ -1856,17 +1856,17 @@ class pronsole(cmd.Cmd):
...
@@ -1856,17 +1856,17 @@ class pronsole(cmd.Cmd):
self
.
onecmd
(
command
)
self
.
onecmd
(
command
)
def
do_run_script
(
self
,
l
):
def
do_run_script
(
self
,
l
):
p
=
run_command
(
l
,
{
"
%
s"
:
str
(
self
.
filename
)},
stdout
=
subprocess
.
PIPE
)
p
=
run_command
(
l
,
{
"
$
s"
:
str
(
self
.
filename
)},
stdout
=
subprocess
.
PIPE
)
for
line
in
p
.
stdout
.
readlines
():
for
line
in
p
.
stdout
.
readlines
():
self
.
log
(
"<< "
+
line
.
strip
())
self
.
log
(
"<< "
+
line
.
strip
())
def
help_run_script
(
self
):
def
help_run_script
(
self
):
self
.
log
(
_
(
"Runs a custom script. Current gcode filename can be given using
%
s token."
))
self
.
log
(
_
(
"Runs a custom script. Current gcode filename can be given using
$
s token."
))
def
do_run_gcode_script
(
self
,
l
):
def
do_run_gcode_script
(
self
,
l
):
p
=
run_command
(
l
,
{
"
%
s"
:
str
(
self
.
filename
)},
stdout
=
subprocess
.
PIPE
)
p
=
run_command
(
l
,
{
"
$
s"
:
str
(
self
.
filename
)},
stdout
=
subprocess
.
PIPE
)
for
line
in
p
.
stdout
.
readlines
():
for
line
in
p
.
stdout
.
readlines
():
self
.
onecmd
(
line
.
strip
())
self
.
onecmd
(
line
.
strip
())
def
help_run_gcode_script
(
self
):
def
help_run_gcode_script
(
self
):
self
.
log
(
_
(
"Runs a custom script which output gcode which will in turn be executed. Current gcode filename can be given using
%
s token."
))
self
.
log
(
_
(
"Runs a custom script which output gcode which will in turn be executed. Current gcode filename can be given using
$
s token."
))
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