Re: problem of double import in python

2013-09-02 Thread Joel Goldstick
On Mon, Sep 2, 2013 at 9:16 PM, Mohsen Pahlevanzadeh wrote: > When i uncomment > > from common.interface.interface import ShowHide The line above only loads interface.interface.ShowHide I > > in file contains Ui_Materials class i get the following traceback: > //

Re: problem of double import in python

2013-09-02 Thread Mohsen Pahlevanzadeh
When i uncomment from common.interface.interface import ShowHide in file contains Ui_Materials class i get the following traceback: // Traceback (most recent call last): File "./main.py", line 110, in main() File "./main.py", line 91, in main interfac

Re: problem of double import in python

2013-09-02 Thread alex23
On 3/09/2013 10:48 AM, Mohsen Pahlevanzadeh wrote: Unfortunately, i prevent to same error, double import to python, but i don't know how to solve, Even i don't know policy of python programmers. You don't need to do anything, Python takes care of this for you. During execution, a module is onl

problem of double import in python

2013-09-02 Thread Mohsen Pahlevanzadeh
Dear all, I remember to avoiding to confusing compiler for header, use / // in my include file #define MYHEADER_H // and in others code use: #ifndef MYHEADER_H #include blahblah / Unfortunately, i prevent to same error, double import to python, but i don't