importing module

Holzwarth, Dominique (Berne Branch) Dominique.Holzwarth at ch.talaris.com
Thu Sep 9 13:46:26 CEST 2010


Hi all

Lets assume I have the following structure of directories and python modules:

Root-dir
|_dir1
  |_ script1.py
|_dir2
  |_ script2.py
  |_sudir2
     |_ script3.py

Is it possible to import script1 into script2 and script3? Or do have to put script1.py into the Lib\site-packages folder of my Python installation so that it'll be in the standard module search path?

Thx & greets
Dominique

*****************************************************************************
This e-mail and any files attached are strictly confidential, may be legally
privileged and are intended solely for the addressee. If you are not the
intended recipient please notify the sender immediately by return email and
then delete the e-mail and any attachments immediately.

The views and or opinions expressed in this e-mail are not necessarily the
views of Talaris Holdings Limited or any of its subsidiaries and the Talaris
Group of companies, their directors, officers and employees make no
representation about and accept no liability for its accuracy or
completeness.

You should ensure that you have adequate virus protection as the Talaris
Group of companies do not accept liability for any viruses.

Talaris Holdings Limited Registered No. 6569609 and Talaris Limited
Registered No 6569621 are both registered in England with their registered
office at:
Talaris House, Crockford Lane, Chineham Business Park, Basingstoke, RG24 8QZ
*****************************************************************************




More information about the Python-list mailing list