It looks simple, but I could not find a solution.
I display the problem below with the simplest example I could come up with.
(My classes are quiet more complex ;) )
file A.py
import os, sys
import B
from B import *
class _A():
def __init__(self,someVars):
self.someVars = someVars
def run(self):
print self.someVars
someVars = 'jdoe'
B._B(someVars)
file B.py don't match with import A
import A
from A import _A
class _B():
def __init__(self,someVars):
self.someVars = someVars
def run(self):
A._A(self.someVars)
with import A
-> callback : cannot find _A
It only works when I do -
from A import *
But and logically A functions are executed 2 times.
Thanks to all