Message12073
Hi,
this was not exactly what I was trying to do.
Could you try this:
Folder TestModule
__init__.py:
import test_file
test_file.py:
import testModule
print( 'TESTPROP: {}'.format(hasattr(testModule, 'TESTPROP')))
testModule.TESTPROP = 'TEST'
print( 'TESTPROP: {}'.format(hasattr(testModule, 'TESTPROP')))
ModuleA.py:
import TestModule
ModuleB.py:
import TestModule
Thank you very much for your quick reply! |
|
Date |
User |
Action |
Args |
2018-08-06 15:54:04 | spaceman_spiff | set | messageid: <1533570844.47.0.56676864532.issue2700@psf.upfronthosting.co.za> |
2018-08-06 15:54:04 | spaceman_spiff | set | recipients:
+ spaceman_spiff, stefan.richthofer |
2018-08-06 15:54:04 | spaceman_spiff | link | issue2700 messages |
2018-08-06 15:54:04 | spaceman_spiff | create | |
|