mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 01:10:12 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
26 lines
658 B
Python
Executable File
26 lines
658 B
Python
Executable File
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 wx
|
|
print "wx.version:", wx.version()
|
|
print "pid:", os.getpid()
|
|
#print "executable:", sys.executable; raw_input("Press Enter...")
|
|
|
|
import imp_unittest, unittest
|
|
|
|
args = sys.argv[:1] + 'discover -p test_*.py -s unittests -t .'.split() + sys.argv[1:]
|
|
unittest.main( argv=args )
|
|
|