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))
commands = ("cd %s" % tmpPath,
commands = ("cd \"%s\"" % tmpPath,
"ren %s %s" % (chunkName, dFileName),
"move /Y %s %s" % (dFileName, dFile))
complComm = " & ".join(command for command in commands)

View File

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

View File

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