[Tutor] How can I add my folder to pythonpath?
Andrew Robert
andrew.arobert at gmail.com
Fri Jun 23 23:39:38 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
What you need to do is append your existing path.
for example:
import sys
sys.path.append(r'd:\python_modules')
You can then import any modules that reside in that path as if they
where part of the standard library.
Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: GnuPT 2.7.2
iD8DBQFEnF+aDvn/4H0LjDwRAl14AKDEfZc0TKEbfhtF+/4h7o56MnCeSACdG6y8
DwLC/UAbZMBHNCQDS/2A5jY=
=HmM2
-----END PGP SIGNATURE-----
More information about the Tutor
mailing list