mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Add the agw subfolder to path so standalone samples can be run there
This commit is contained in:
@@ -152,6 +152,9 @@ def main(argv):
|
||||
demoFolder = os.path.realpath(os.path.dirname(__file__))
|
||||
os.chdir(demoFolder)
|
||||
|
||||
sys.path.insert(0, os.path.join(demoFolder, 'agw'))
|
||||
sys.path.insert(0, '.')
|
||||
|
||||
name, ext = os.path.splitext(argv[1])
|
||||
module = __import__(name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user