Fix pi_import test - look for the .pi files in the same directory as wx

This commit is contained in:
Scott Talbert
2016-08-18 20:03:43 -04:00
parent ca34d719be
commit 6b4f5e886a

View File

@@ -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()