Replacing os.sep constructs with os.path.join

This commit is contained in:
Miroslav Stampar
2013-11-12 14:08:41 +01:00
parent 2f1607b4d5
commit d84ddf23bd
3 changed files with 8 additions and 8 deletions

View File

@@ -837,7 +837,7 @@ def dataToOutFile(filename, data):
retVal = None
if data:
retVal = "%s%s%s" % (conf.filePath, os.sep, filePathToSafeString(filename))
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
with codecs.open(retVal, "wb", UNICODE_ENCODING) as f:
f.write(data)