On Wed, 23 Aug 2006, Terry Carroll wrote:
> I believe that the path for a new process is taken from the registry, in
> particular from
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
> Manager\Environment\Path
More at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/416087
Hi John,The OP wants to do it from a Python program.Thats why I suggested using the registry.Alan GJohn Fouhy <[EMAIL PROTECTED]> wrote: On 24/08/06, Alan Gauld <[EMAIL PROTECTED]> wrote:> PATH is an environment variable and therefore changing it only> affects the current process environment. You n
On 24/08/06, Alan Gauld <[EMAIL PROTECTED]> wrote:
> PATH is an environment variable and therefore changing it only
> affects the current process environment. You need to change it
> at source which used to be in AUTOEXEC.BAT but I don't think
> that is the preferred place in Win2K/XP.
To change t
> Is there a simple way to append the os.getcwd() to the windows path
> statement? I've tried variations of
>
> def createDirectory(self):
>os.system('PATH %%PATH%%;%s;'%(here)) # here = os.getcwd()
>
> but it doesn't seem to work.
PATH is an environment variable and therefore changin
On Wed, 23 Aug 2006, travis mcgee wrote:
> Is there a simple way to append the os.getcwd() to the windows path
> statement? I've tried variations of
>
> def createDirectory(self):
> os.system('PATH %%PATH%%;%s;'%(here)) # here = os.getcwd()
>
> but it doesn't seem to work. I don't get
Is there a simple way to append the os.getcwd() to the windows path statement? I've tried variations of def createDirectory(self): os.system('PATH %%PATH%%;%s;'%(here)) # here = os.getcwd()but it doesn't seem to work. I don't get an error in IDLE, but if I open a command prompt, the path d