Add the agw subfolder to path so standalone samples can be run there

This commit is contained in:
Robin Dunn
2017-09-04 14:00:57 -07:00
parent bad0242c18
commit 94c69d707f

View File

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