renamed parameter savepath to customSavePath for better distinguishability to savePath

This commit is contained in:
Constantin Wenger
2016-02-05 13:10:18 +01:00
parent f0775af439
commit 02d4ac81dd

View File

@@ -60,7 +60,7 @@ def __createDirs(path):
if not os.path.exists(path):
os.makedirs(path)
def defPaths(savepath):
def defPaths(customSavePath):
global debug
global pyfaPath
global savePath
@@ -87,11 +87,11 @@ def defPaths(savepath):
else:
savePath = getattr(configforced, "savePath", None)
if savePath is None:
if savepath is None: # savepath is not overriden
if customSavePath is None: # customSavePath is not overriden
savePath = unicode(os.path.expanduser(os.path.join("~", ".pyfa")),
sys.getfilesystemencoding())
else:
savePath = savepath
savePath = customSavePath
__createDirs(savePath)