Minor Linux fixes
- Now supporting both " and ' in escaped paths - The app-name filter now uses os.sep instead of "\\"
This commit is contained in:
parent
54275c4522
commit
2803432ac1
@ -336,7 +336,7 @@ def requestAppPath():
|
|||||||
while True:
|
while True:
|
||||||
clear()
|
clear()
|
||||||
dir = input("Please insert a folder via Drag&Drop:\n")
|
dir = input("Please insert a folder via Drag&Drop:\n")
|
||||||
dir = dir.replace('"',"")
|
if (dir[0] == '"' and dir[-1] == '"') or (dir[0] == "'" and dir[-1] == "'"): dir = dir[1:-1]
|
||||||
|
|
||||||
if dir == "console":
|
if dir == "console":
|
||||||
console()
|
console()
|
||||||
@ -403,7 +403,7 @@ def setupVariables():
|
|||||||
raise NameError("Folder not found: " +appPath)
|
raise NameError("Folder not found: " +appPath)
|
||||||
|
|
||||||
if os.path.isdir(appPath.replace(" - umlOriginal","")): appPath = appPath.replace(" - umlOriginal","")
|
if os.path.isdir(appPath.replace(" - umlOriginal","")): appPath = appPath.replace(" - umlOriginal","")
|
||||||
appName = appPath.replace(os.path.dirname(appPath)+ "\\","")
|
appName = appPath.replace(os.path.dirname(appPath)+ os.sep,"")
|
||||||
originalAppPath = appPath + " - umlOriginal"
|
originalAppPath = appPath + " - umlOriginal"
|
||||||
tmpAppPath = appPath + " - umlTemp"
|
tmpAppPath = appPath + " - umlTemp"
|
||||||
modPath = os.path.join(appPath + " - umlMods")
|
modPath = os.path.join(appPath + " - umlMods")
|
||||||
|
Loading…
Reference in New Issue
Block a user