Re: [Tutor] Adding the current working directory to the Windows path

2006-08-24 Thread Terry Carroll
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

Re: [Tutor] Adding the current working directory to the Windows path

2006-08-24 Thread ALAN GAULD
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

Re: [Tutor] Adding the current working directory to the Windows path

2006-08-23 Thread John Fouhy
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

Re: [Tutor] Adding the current working directory to the Windows path

2006-08-23 Thread Alan Gauld
> 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

Re: [Tutor] Adding the current working directory to the Windows path

2006-08-23 Thread Terry Carroll
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

[Tutor] Adding the current working directory to the Windows path

2006-08-23 Thread travis mcgee
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