From a938e6a76fc667f5ab41a1409581707940a48c80 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 4 Dec 2010 00:28:47 +0000 Subject: [PATCH] Move runtests.py to unittests folder git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- runtests.py => unittests/runtests.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) rename runtests.py => unittests/runtests.py (61%) diff --git a/runtests.py b/unittests/runtests.py similarity index 61% rename from runtests.py rename to unittests/runtests.py index 12c04193..181ad074 100755 --- a/runtests.py +++ b/unittests/runtests.py @@ -1,7 +1,18 @@ import sys +import os + +# make sure our development dir is on the path +if os.path.dirname(__file__): + phoenixDir = os.path.abspath(os.path.dirname(__file__)+'/..') +else: # run as main? + d = os.path.dirname(sys.argv[0]) + if not d: d = '.' + phoenixDir = os.path.abspath(d+'/..') + +#if phoenixDir not in sys.path: +sys.path.insert(0, phoenixDir) # stuff for debugging -import os import wxPhoenix as wx print "pid:", os.getpid() #print "executable:", sys.executable; raw_input("Press Enter...")