diff options
author | grbd <garlicbready@googlemail.com> | 2017-08-03 14:53:20 (GMT) |
---|---|---|
committer | grbd <garlicbready@googlemail.com> | 2017-08-03 14:53:20 (GMT) |
commit | 1849ff611b22a55b8933dc9f05db66114e34cd14 (patch) | |
tree | d149ae7ee604fbb9200b06ca96ebe49bfdb5e0f3 /test/toolpath | |
parent | e2f981db1c087c2d684cfd4ace988a4e173d975d (diff) | |
download | SCons-1849ff611b22a55b8933dc9f05db66114e34cd14.zip SCons-1849ff611b22a55b8933dc9f05db66114e34cd14.tar.gz SCons-1849ff611b22a55b8933dc9f05db66114e34cd14.tar.bz2 |
Added support for a PyPackageDir function
Diffstat (limited to 'test/toolpath')
-rw-r--r-- | test/toolpath/nested/image/SConstruct | 7 | ||||
-rw-r--r-- | test/toolpath/nested/nested.py | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/toolpath/nested/image/SConstruct b/test/toolpath/nested/image/SConstruct index 211a0d7..78ae21d 100644 --- a/test/toolpath/nested/image/SConstruct +++ b/test/toolpath/nested/image/SConstruct @@ -55,4 +55,11 @@ print("env3['Toolpath_TestTool1_2'] =", env3.get('Toolpath_TestTool1_2')) print("env3['Toolpath_TestTool2_1'] =", env3.get('Toolpath_TestTool2_1'))
print("env3['Toolpath_TestTool2_2'] =", env3.get('Toolpath_TestTool2_2'))
+
+print('Test using PyPackageDir')
+toollist = ['Toolpath_TestTool2_1', 'Toolpath_TestTool2_2']
+env4 = Environment(tools = toollist, toolpath = [PyPackageDir('tools_example.subdir1.subdir2')])
+print("env4['Toolpath_TestTool2_1'] =", env4.get('Toolpath_TestTool2_1'))
+print("env4['Toolpath_TestTool2_2'] =", env4.get('Toolpath_TestTool2_2'))
+
sys.path = oldsyspath
diff --git a/test/toolpath/nested/nested.py b/test/toolpath/nested/nested.py index a736d58..df2ba07 100644 --- a/test/toolpath/nested/nested.py +++ b/test/toolpath/nested/nested.py @@ -57,6 +57,9 @@ env3['Toolpath_TestTool1_1'] = 1 env3['Toolpath_TestTool1_2'] = 1 env3['Toolpath_TestTool2_1'] = 1 env3['Toolpath_TestTool2_2'] = 1 +Test using PyPackageDir +env4['Toolpath_TestTool2_1'] = 1 +env4['Toolpath_TestTool2_2'] = 1 scons: done reading SConscript files. scons: Building targets ... scons: `.' is up to date. |