[Tutor] path to executing .py file

2009-04-13 Thread tiefeng wu
ced "os.getcwd()" in above line? And I have another question, I've tried remove a copy of svn repository by calling shutil.rmtree(svn_repos_copy_dir) I got error "Access denied!" Is that mean my script has no power to delete it? Is there some way to give the rig

Re: [Tutor] path to executing .py file

2009-04-14 Thread tiefeng wu
indows explorer (with same user login as script was called) with no problem. if this question has nothing concerned with this mailing list, I'm sorry an please ignore it. tiefeng wu ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] reading file, adding to each line, writing file

2009-02-04 Thread tiefeng wu
e), and my trial > and error approach has brought me nothing but a headache. > > Thanks for your help! > > David > Hi David! My solution of your problem would be the following: >>> infile = open('step2', 'r') >>> str = infile.read() >>&