Re: [Tutor] path to executing .py file

2009-04-14 Thread tiefeng wu
> > is there some way to get path to my executing script, so I can replaced >> "os.getcwd()" in above line? >> > > Look at the recent thread on creating exe files with py2exe. > Investigate the __file__ variable... thanks, Alan Gauld. thanks for your patience for such a trivial question:) > sh

Re: [Tutor] path to executing .py file

2009-04-14 Thread Alan Gauld
"tiefeng wu" wrote is there some way to get path to my executing script, so I can replaced "os.getcwd()" in above line? Look at the recent thread on creating exe files with py2exe. Investigate the __file__ variable... shutil.rmtree(svn_repos_copy_dir) I got error "Access denied!" Is that

[Tutor] path to executing .py file

2009-04-13 Thread tiefeng wu
Hello everybody! I'm working on my code repository (svn) auto-backup script which get hotcopy of svn repository directory to a directory named by date in same location where script file is, it executed by a timer program every 00:00 clock. Everything works fine when I'm testing by double click it.