From 929c245069aa7b877be710017a5f41e4a1e9ef29 Mon Sep 17 00:00:00 2001 From: kliment Date: Thu, 21 Jul 2011 15:17:40 +0200 Subject: [PATCH] Change working dir to enable skeinforge detection --- pronterface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pronterface.py b/pronterface.py index 7e7f2c2..585fb3f 100755 --- a/pronterface.py +++ b/pronterface.py @@ -5,6 +5,11 @@ except: print "WX is not installed. This program requires WX to run." raise import printcore, os, sys, glob, time, threading, traceback, StringIO, gviz +try: + os.chdir(os.path.split(__file__)[0]) +except: + pass + thread=threading.Thread winsize=(800,500) if os.name=="nt":