Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
TabbedBoxMaker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
machinery
TabbedBoxMaker
Commits
2e3c9778
Commit
2e3c9778
authored
Aug 11, 2016
by
John Slee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Schroff: logfile path in environment
parent
1c168f95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
boxmaker.py
boxmaker.py
+3
-2
No files found.
boxmaker.py
View file @
2e3c9778
...
@@ -35,10 +35,11 @@ import sys,inkex,simplestyle,gettext,math
...
@@ -35,10 +35,11 @@ import sys,inkex,simplestyle,gettext,math
_
=
gettext
.
gettext
_
=
gettext
.
gettext
def
log
(
text
):
def
log
(
text
):
if
1
:
if
'SCHROFF_LOG'
in
os
.
environ
:
f
=
open
(
'/tmp/boxmaker.log'
,
'a'
)
f
=
open
(
os
.
environ
.
get
(
'SCHROFF_LOG'
)
,
'a'
)
f
.
write
(
text
+
"
\n
"
)
f
.
write
(
text
+
"
\n
"
)
def
drawS
(
XYstring
):
# Draw lines from a list
def
drawS
(
XYstring
):
# Draw lines from a list
name
=
'part'
name
=
'part'
style
=
{
'stroke'
:
'#000000'
,
'fill'
:
'none'
}
style
=
{
'stroke'
:
'#000000'
,
'fill'
:
'none'
}
...
...
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