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
ea72af56
Commit
ea72af56
authored
Sep 26, 2011
by
Denis B
Committed by
Kliment Yanev
Sep 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed hang on the second launch of skeinforge settings dialog under Windows.
parent
ca6bf893
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pronsole.py
pronsole.py
+6
-3
No files found.
pronsole.py
View file @
ea72af56
#!/usr/bin/env python
#!/usr/bin/env python
import
cmd
,
printcore
,
sys
import
cmd
,
printcore
,
sys
import
glob
,
os
,
time
import
glob
,
os
,
time
import
sys
,
subprocess
if
os
.
name
==
"nt"
:
if
os
.
name
==
"nt"
:
try
:
try
:
import
_winreg
import
_winreg
...
@@ -1038,7 +1039,9 @@ class pronsole(cmd.Cmd):
...
@@ -1038,7 +1039,9 @@ class pronsole(cmd.Cmd):
from
skeinforge.skeinforge_application.skeinforge_utilities
import
skeinforge_craft
from
skeinforge.skeinforge_application.skeinforge_utilities
import
skeinforge_craft
from
skeinforge.skeinforge_application
import
skeinforge
from
skeinforge.skeinforge_application
import
skeinforge
if
(
settings
):
if
(
settings
):
skeinforge
.
main
()
param
=
"skeinforge/skeinforge_application/skeinforge.py"
print
"Entering skeinforge settings: "
,
sys
.
executable
,
" "
,
param
subprocess
.
call
([
sys
.
executable
,
param
])
else
:
else
:
if
(
len
(
l
)
>
1
):
if
(
len
(
l
)
>
1
):
if
(
l
[
1
]
==
"view"
):
if
(
l
[
1
]
==
"view"
):
...
@@ -1049,8 +1052,8 @@ class pronsole(cmd.Cmd):
...
@@ -1049,8 +1052,8 @@ class pronsole(cmd.Cmd):
skeinforge_craft
.
writeOutput
(
l
[
0
],
False
)
skeinforge_craft
.
writeOutput
(
l
[
0
],
False
)
print
"Loading skeined file."
print
"Loading skeined file."
self
.
do_load
(
l
[
0
]
.
replace
(
".stl"
,
"_export.gcode"
))
self
.
do_load
(
l
[
0
]
.
replace
(
".stl"
,
"_export.gcode"
))
except
:
except
Exception
,
e
:
print
"Skeinforge execution failed
."
print
"Skeinforge execution failed
: "
,
e
def
complete_skein
(
self
,
text
,
line
,
begidx
,
endidx
):
def
complete_skein
(
self
,
text
,
line
,
begidx
,
endidx
):
s
=
line
.
split
()
s
=
line
.
split
()
...
...
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