Re: sys path modification

2015-07-27 Thread Cameron Simpson
On 27Jul2015 14:09, neubyr wrote: Modules are installed, but they are in a different directory than standard modules directory. I considered an option to add a site specific directory, but I want to make module path application specific rather than installing it in system-wide directory. virtual

Re: sys path modification

2015-07-27 Thread neubyr
Modules are installed, but they are in a different directory than standard modules directory. I considered an option to add a site specific directory, but I want to make module path application specific rather than installing it in system-wide directory. virtualenv is one option, but that means any

Re: sys path modification

2015-07-27 Thread Ned Batchelder
On Monday, July 27, 2015 at 1:24:50 PM UTC-4, neubyr wrote: > I am trying to understand sys.path working and best practices for managing it > within a program or script. Is it fine to modify sys.path using > sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer - > http://stackoverflow.c

Re: sys path modification

2015-07-27 Thread Cem Karan
On Jul 27, 2015, at 1:24 PM, neubyr wrote: > > I am trying to understand sys.path working and best practices for managing it > within a program or script. Is it fine to modify sys.path using > sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer - > http://stackoverflow.com/a/1009754

sys path modification

2015-07-27 Thread neubyr
I am trying to understand sys.path working and best practices for managing it within a program or script. Is it fine to modify sys.path using sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer - http://stackoverflow.com/a/10097543 - suggests that it may break external 3'rd party code as