Message12072

Author stefan.richthofer
Recipients spaceman_spiff, stefan.richthofer
Date 2018-08-06.14:53:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533567192.01.0.56676864532.issue2700@psf.upfronthosting.co.za>
In-reply-to
Content
So, first step is to find a minimal configuration to reproduce this, ideally independently from openhab. I quickly tried to reproduce with a plain Jython (dev tip):

ModuleA.py:
print "A imported"

ModuleB.py:

import ModuleA

print "B import started"
print( 'TESTPROP: {}'.format(hasattr(ModuleA, 'TESTPROP')))
ModuleA.TESTPROP = 'TEST'
print( 'TESTPROP: {}'.format(hasattr(ModuleA, 'TESTPROP')))
print "B imported"


Output is as expected:

A imported
B import started
TESTPROP: 0
TESTPROP: 1
B imported



So this is triggered by something more advanced.
History
Date User Action Args
2018-08-06 14:53:12stefan.richthofersetmessageid: <1533567192.01.0.56676864532.issue2700@psf.upfronthosting.co.za>
2018-08-06 14:53:12stefan.richthofersetrecipients: + stefan.richthofer, spaceman_spiff
2018-08-06 14:53:11stefan.richthoferlinkissue2700 messages
2018-08-06 14:53:11stefan.richthofercreate