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
f3d7f952
Commit
f3d7f952
authored
May 23, 2012
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'experimental' of github.com:kliment/Printrun into experimental
parents
8a29452a
99eb4edf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pronsole.py
pronsole.py
+4
-4
No files found.
pronsole.py
View file @
f3d7f952
...
@@ -1153,14 +1153,14 @@ class pronsole(cmd.Cmd):
...
@@ -1153,14 +1153,14 @@ class pronsole(cmd.Cmd):
import
shlex
import
shlex
if
(
settings
):
if
(
settings
):
param
=
self
.
expandcommand
(
self
.
settings
.
sliceoptscommand
)
.
replace
(
"
\\
"
,
"
\\\\
"
)
.
encode
()
param
=
self
.
expandcommand
(
self
.
settings
.
sliceoptscommand
)
.
replace
(
"
\\
"
,
"
\\\\
"
)
.
encode
()
print
"Entering s
keinforge
settings: "
,
param
print
"Entering s
licer
settings: "
,
param
subprocess
.
call
(
shlex
.
split
(
param
))
subprocess
.
call
(
shlex
.
split
(
param
))
else
:
else
:
param
=
self
.
expandcommand
(
self
.
settings
.
slicecommand
)
.
encode
()
param
=
self
.
expandcommand
(
self
.
settings
.
slicecommand
)
.
encode
()
print
"Slicing: "
,
param
print
"Slicing: "
,
param
params
=
[
i
.
replace
(
"$s"
,
l
[
0
])
.
replace
(
"$o"
,
l
[
0
]
.
replace
(
".stl"
,
"_export.gcode"
)
.
replace
(
".STL"
,
"_export.gcode"
))
.
encode
()
for
i
in
shlex
.
split
(
param
.
replace
(
"
\\
"
,
"
\\\\
"
)
.
encode
())]
params
=
[
i
.
replace
(
"$s"
,
l
[
0
])
.
replace
(
"$o"
,
l
[
0
]
.
replace
(
".stl"
,
"_export.gcode"
)
.
replace
(
".STL"
,
"_export.gcode"
))
.
encode
()
for
i
in
shlex
.
split
(
param
.
replace
(
"
\\
"
,
"
\\\\
"
)
.
encode
())]
subprocess
.
call
(
params
)
subprocess
.
call
(
params
)
print
"Loading s
kein
ed file."
print
"Loading s
lic
ed file."
self
.
do_load
(
l
[
0
]
.
replace
(
".stl"
,
"_export.gcode"
))
self
.
do_load
(
l
[
0
]
.
replace
(
".stl"
,
"_export.gcode"
))
except
Exception
,
e
:
except
Exception
,
e
:
print
"Skeinforge execution failed: "
,
e
print
"Skeinforge execution failed: "
,
e
...
@@ -1176,10 +1176,10 @@ class pronsole(cmd.Cmd):
...
@@ -1176,10 +1176,10 @@ class pronsole(cmd.Cmd):
return
glob
.
glob
(
"*/"
)
+
glob
.
glob
(
"*.stl"
)
return
glob
.
glob
(
"*/"
)
+
glob
.
glob
(
"*.stl"
)
def
help_skein
(
self
):
def
help_skein
(
self
):
print
"Creates a gcode file from an stl model using
skeinforge
(with tab-completion)"
print
"Creates a gcode file from an stl model using
the slicer
(with tab-completion)"
print
"skein filename.stl - create gcode file"
print
"skein filename.stl - create gcode file"
print
"skein filename.stl view - create gcode file and view using skeiniso"
print
"skein filename.stl view - create gcode file and view using skeiniso"
print
"skein set - adjust s
keinforge
settings"
print
"skein set - adjust s
licer
settings"
def
do_home
(
self
,
l
):
def
do_home
(
self
,
l
):
...
...
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