<span class="Apple-style-span" style="border-collapse: collapse; ">Hello everybody!<div><br><div>I'm working on my code repository (svn) auto-backup script which get hotcopy of svn repository</div><div>directory to a directory named by date in same location where script file is, it executed by a timer</div>
<div>program every 00:00 clock. Everything works fine when I'm testing by double click it. But when</div><div>auto execute it, I got unexpected behavior. The backup directory will be created under</div><div>"C:\Documents and settings\username". I create backup directory by this way:</div>
<div><br></div><div>os.mkdir(os.getcwd() + arch_dir)<br></div><div><br></div><div>is there some way to get path to my executing script, so I can replaced "os.getcwd()" in above</div><div>line?</div><div><br></div>
<div>And I have another question, I've tried remove a copy of svn repository by calling</div><div><br></div><div>shutil.rmtree(svn_repos_copy_dir)</div><div><br></div><div>I got error "Access denied!" Is that mean my script has no power to delete it? Is there some way to</div>
<div>give the right to do that?</div><div><br></div><div>thanks</div><div><br></div><div>tiefeng wu</div><div>2009-04-14</div></div></span>