![]() There is another workaround as well, as the last thing you do in the script that installs subversion, you could replace that process with another shell which has the environment you want. Or if you always run the same scripts in the same order with the same arguments, wrap them in a shell-script which sets the environment for itself and runs those programs/scripts. Os.environ = "/opt/subversion/bin:" + os.environ ![]() If the scripts/programs you run afterwards is python, you could as the first thing you do in those programs, prepend the path to subversion into their environment. It'd requrie fiddling around inside parent process' memory, and as far as I know there's no well defined way of doing this (I.e. As others have pointed out, no there's not really any way of modifying the environment of a parent process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |