mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Fix pi_import test - look for the .pi files in the same directory as wx
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import unittest
|
||||
import sys, os, subprocess
|
||||
import wx
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -16,7 +17,7 @@ class PIImportTest(unittest.TestCase):
|
||||
|
||||
def runPI(self, filename):
|
||||
cwd = os.getcwd()
|
||||
dirname = os.path.join(os.path.dirname(__file__), '../wx')
|
||||
dirname = os.path.dirname(wx.__file__)
|
||||
os.chdir(dirname)
|
||||
|
||||
sp = subprocess.Popen('%s %s' % (sys.executable, filename),
|
||||
@@ -66,4 +67,4 @@ class PIImportTest(unittest.TestCase):
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user