P
Philipp Hagemeister
Where is the fault in my reasoning here?
1) According to http://docs.python.org/dev/install/, "The most
convenient way is to add a path configuration file to a directory that’s
already on Python’s path, (...).
2) Path configuration files have an extension of .pth, (...)"
1&2 => 3) A file test.pth with the content "/example/" should result in
sys.path containing "/example/".
4) "" (the current directory) is the first element of my sys.path
1&4 => 5) The current directory qualifies for "a directory that’s
already on Python’s path,"
1&3&5 => 6) echo /example/ > test.pth; python -c 'import
sys;print(repr(sys.path))' should contain '/example'.
I think I misinterpreted the documentation, but what exactly is wrong here?
Regards,
Philipp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkoRLxsACgkQ9eq1gvr7CFzGqgCgmw2k4ZDbTwOlxlb48vi9fchl
EgMAnRnX8mK3nhWu4iNBPRoIxb6x6Wvp
=q036
-----END PGP SIGNATURE-----
1) According to http://docs.python.org/dev/install/, "The most
convenient way is to add a path configuration file to a directory that’s
already on Python’s path, (...).
2) Path configuration files have an extension of .pth, (...)"
1&2 => 3) A file test.pth with the content "/example/" should result in
sys.path containing "/example/".
4) "" (the current directory) is the first element of my sys.path
1&4 => 5) The current directory qualifies for "a directory that’s
already on Python’s path,"
1&3&5 => 6) echo /example/ > test.pth; python -c 'import
sys;print(repr(sys.path))' should contain '/example'.
I think I misinterpreted the documentation, but what exactly is wrong here?
Regards,
Philipp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkoRLxsACgkQ9eq1gvr7CFzGqgCgmw2k4ZDbTwOlxlb48vi9fchl
EgMAnRnX8mK3nhWu4iNBPRoIxb6x6Wvp
=q036
-----END PGP SIGNATURE-----