it the way i want to.
ok, so I come into python and do the following:
then, i have a file called test.py in which i say:>>x = 1
print x
Now, after having defined x =1 in the python interpreter, i come in and
say:
import test
it has a problem, which i can understand, because it is in its own
namespace,
but even if i say:
from test import *
the interpreter still gives me the error:
NameError: name 'x' is not defined
the only way i can get it to work is if i say: execfile('./test.py')
how can i get this to work by importing and not execfile?
thanks for your help!