# HG changeset patch # User MattD # Date 1268682311 0 # Node ID 4e09c8ccae86e0402b6664b6b326fa34d088c8e1 # Parent 12422144aae1b595a2eb220aa4487b8144e14893 DBRTools - Need to restore the current working directory. diff -r 12422144aae1 -r 4e09c8ccae86 dbrtools/dbr/dbrutils.py --- a/dbrtools/dbr/dbrutils.py Mon Mar 15 16:57:00 2010 +0000 +++ b/dbrtools/dbr/dbrutils.py Mon Mar 15 19:45:11 2010 +0000 @@ -74,6 +74,7 @@ def extractfromzip(files, name, location): tmpfilename = os.tmpnam( ) print tmpfilename + cwd = os.getcwd(); os.chdir(os.path.join(epocroot(),location)) f = open(tmpfilename,'w') for file in sorted(files): @@ -85,6 +86,7 @@ print 'executing: >%s<\n' %exestr os.system(exestr) os.unlink(tmpfilename) + os.chdir(cwd) def deletefiles(files): os.chdir(epocroot())