Feb-03-2019, 01:44 PM
(This post was last modified: Feb-03-2019, 01:45 PM by AlekseyPython.)
I placed global variables in file __init__ for each package. Now I get an error when I try to access these attributes:
Error:AttributeError: 'method-wrapper' object has no attribute 'FormsDirectory'
There is a single line in the __init__ file of the Forms package:FormsDirectory = '/home/alesha/eclipse-workspace/AnalysisData/Forms/'In another file (where I want to use this variable) I wrote:
from Forms import __init__ as MyForms d = MyForms.FormsDirectory // ERROR !!!I looked in the debugger- mode: indeed, the variable MyForms has the type methodwrapper... Why?