Commit 4247c8d3 authored by paulh-rnd's avatar paulh-rnd Committed by GitHub

Merge pull request #9 from indigoid/windows-logging-fix

Windows logging fix - looks good to me, thanks John
parents 9ee07d73 fd952380
...@@ -31,14 +31,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -31,14 +31,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
''' '''
__version__ = "0.86" ### please report bugs, suggestions etc to bugs@twot.eu ### __version__ = "0.86" ### please report bugs, suggestions etc to bugs@twot.eu ###
import sys,inkex,simplestyle,gettext,math import os,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