Ticket #329 (new defect)

Opened 3 months ago

trying to delete temporary directory before closing config file in checkconfig

Reported by: vuswati Assigned to:
Priority: critical Milestone: undecided
Component: other Version: 0.7.8
Keywords: Cc:

Description

os.chdir(tempdir) # Add the temp directory to the library path so local modules work sys.path.append(tempdir) configFile = open(configFileName, "r") self.loadConfig(configFile)

except:

print "in exception" os.chdir(dir) rmtree(tempdir) raise

missing statement after loadconfig is to close the config file

configFile.close();

sys.path.remove(tempdir)

Because of which running checkconfig informs an error "file in directory used by other process"