Minor code refactoring

This commit is contained in:
Bernardo Damele
2012-01-13 16:49:52 +00:00
parent 337973df77
commit b03f91437b
4 changed files with 45 additions and 16 deletions

View File

@@ -39,7 +39,11 @@ class Miscellaneous:
def getRemoteTempPath(self):
if not conf.tmpPath:
if Backend.isOs(OS.WINDOWS):
conf.tmpPath = "C:/WINDOWS/Temp"
print "Backend.getOsVersion():", type(Backend.getOsVersion()), Backend.getOsVersion()
if Backend.getOsVersion() == "2000":
conf.tmpPath = "C:/WINNT/Temp"
else:
conf.tmpPath = "C:/WINDOWS/Temp"
else:
conf.tmpPath = "/tmp"