Closed taladi closed 1 year ago
Yes it is. You can use
import sys
sys.path.insert(1, '<FIRST_PATH_TO_CLASS>/python/build/lib.macosx-10.9-x86_64-3.7')
import classy as classy_first
# Check that it worked:
print(classy_first.__file__)
sys.path.insert(1, '<SECOND_PATH_TO_CLASS>/python/build/lib.macosx-10.9-x86_64-3.7')
import classy as classy_second
# Check that it worked:
print(classy_second.__file__)
The folder in the python/build
folder will have different names, but you can code your way out of that.
Cheers, Thomas
Is it possible to specify class directory in order to run two versions of class in the same code?