Rename of .mdb file -- lock

Steve Holden steve at holdenweb.com
Fri Dec 12 04:42:24 CET 2008


noydb wrote:
> On Dec 11, 9:38 pm, "gudonghua+pyt... at gmail.com" <gudong... at gmail.com>
> wrote:
[...]
> 
> Thanks!  That was simple enough.
> 
> And...
> ##os.rename(new91mdb, (os.path.join(output_dir, uChoice)))
> os.rename(new91mdb, (os.path.join(output_dir, "C:\TEMP\test1.mdb")))
> 
> ... of those two lines, the top one worked.

The reason the second one didn't work is because "\t" is the tab
character. Look for "raw strings" in the documentation.

r"C:\TEMP\test1.mdb" should work.

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list