modification of temporary directory from C:/Windows/Temp to %TEMP%

This commit is contained in:
Miroslav Stampar 2010-05-13 09:32:27 +00:00
parent 2fdac83607
commit 2323d858a9
3 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ class Filesystem(GenericFilesystem):
logger.debug("moving binary file %s to %s" % (sFile, dFile)) logger.debug("moving binary file %s to %s" % (sFile, dFile))
commands = ("cd %s" % tmpPath, commands = ("cd \"%s\"" % tmpPath,
"ren %s %s" % (chunkName, dFileName), "ren %s %s" % (chunkName, dFileName),
"move /Y %s %s" % (dFileName, dFile)) "move /Y %s %s" % (dFileName, dFile))
complComm = " & ".join(command for command in commands) complComm = " & ".join(command for command in commands)

View File

@ -211,7 +211,7 @@ class Filesystem:
for scrLine in fileScrLines: for scrLine in fileScrLines:
forgedScrLine = "echo %s " % scrLine forgedScrLine = "echo %s " % scrLine
forgedScrLine += ">> %s\%s" % (tmpPath, randScr) forgedScrLine += ">> \"%s\%s\"" % (tmpPath, randScr)
forgedScrLines.append(forgedScrLine) forgedScrLines.append(forgedScrLine)
for forgedScrLine in forgedScrLines: for forgedScrLine in forgedScrLines:

View File

@ -65,7 +65,7 @@ class Miscellaneous:
#logger.info(infoMsg) #logger.info(infoMsg)
# #
#conf.tmpPath = self.evalCmd("echo %TEMP%") #conf.tmpPath = self.evalCmd("echo %TEMP%")
conf.tmpPath = "C:/WINDOWS/Temp" conf.tmpPath = "%TEMP%"
else: else:
conf.tmpPath = "/tmp" conf.tmpPath = "/tmp"