Calling user defined functions from a different script..
Esmail
ebonak at hotmail.com
Wed Apr 15 08:28:03 EDT 2009
I think taking a look at
sys.path.append()
might help.
Esmail
venutaurus539 at gmail.com wrote:
> Hello all,
> I have a situation where I need to call functions present in
> a different script whose hierarchy is something like below:
>
> C:\Pythonlib\uitl\script1.py {Place where my functions definitions are
> present}
>
> C:\Scripts\script2.py { Place where function calls are made}
>
> In such a situation how can I import functions from
> script1.py and use it in script2.py.
More information about the Python-list
mailing list