Message12073

Author spaceman_spiff
Recipients spaceman_spiff, stefan.richthofer
Date 2018-08-06.15:54:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533570844.47.0.56676864532.issue2700@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2018-08-06 15:54:04spaceman_spiffsetmessageid: <1533570844.47.0.56676864532.issue2700@psf.upfronthosting.co.za>
2018-08-06 15:54:04spaceman_spiffsetrecipients: + spaceman_spiff, stefan.richthofer
2018-08-06 15:54:04spaceman_spifflinkissue2700 messages
2018-08-06 15:54:04spaceman_spiffcreate