Yes, this is exactly what I wanted--just like in perl I can add search
path to @inc.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
If i understand correctly what you're after I think another option is
import sys
sys.path.append('http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Dear all,
i have a simple question.
Suppose I have my classes such as
myClass1.py
myClass2.py
etc
which I keep in a special folder ~/py_libs
Now
suppose I have a program that is not in py_libs
but I want to do
import myClass1 # note: myClass1 is not in the current directory
Dear all,
i have a simple question.
Suppose I have my classes such as
myClass1.py
myClass2.py
etc
which I keep in a special folder ~/py_libs
Now
suppose I have a program that is not in py_libs
but I want to do
import myClass1 # note: myClass1 is not in the current directory
how can I set the sear