Re: Getting original working directory

2007-09-06 Thread rave247 rave247
rking directory > Datum: 06.9.2007 21:15:10 > ------------ > rave247 rave247 wrote: > > If I could use os.getcwd() or save the value to some variable before calling > os.chdir() > > I would do it, believe me. However I can't because it is t

Re: Getting original working directory

2007-09-06 Thread rave247 rave247
> One of the best portable ones that I've seen used is this: > > os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]),'.')) This is not working. Please look at this code: import os import sys x = os.getcwd() os.chdir("\whatever") y = #here I don't know. This code is not working: os.pat

Re: Getting original working directory

2007-09-06 Thread rave247 rave247
directory > Datum: 06.9.2007 20:31:33 > ------------ > rave247 rave247 wrote: > > "..the *original* directory location *after* os.chdir() is > performed.." os.getcwd() is not helping much as it returns the location > that > was

Re: Getting original working directory

2007-09-06 Thread rave247 rave247
> Předmět: Re: Getting original working directory > Datum: 06.9.2007 17:35:51 > -------- > On 6 sep, 12:19, rave247 rave247 <[EMAIL PROTECTED]> wrote: > > > I' am unable to solve this problem. I've got python program, it is ins

Getting original working directory

2007-09-06 Thread rave247 rave247
Hi, I' am unable to solve this problem. I've got python program, it is installed in standard location. I run this program from some location X (note that I just type relative "myscript", leaving operating system to look up script itself using PATH variable) and this program somewhere in the cod