Commit 2e3c9778 authored by John Slee's avatar John Slee

Schroff: logfile path in environment

parent 1c168f95
...@@ -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' }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment