fix for folder paths on linux
This commit is contained in:
parent
13f17d3eca
commit
4a920724d9
|
@ -379,9 +379,9 @@ def get_folder_path_info(base):
|
||||||
if path[-1] == "\\":
|
if path[-1] == "\\":
|
||||||
path = path[:-1]
|
path = path[:-1]
|
||||||
breadcrumbs = []
|
breadcrumbs = []
|
||||||
for i in range(len(path.split("\\"))):
|
for i in range(len(path.replace("/", "\\").split("\\"))):
|
||||||
breadcrumbs.append(["\\".join(path.split("\\")[:i+1]),
|
breadcrumbs.append(["\\".join(path.replace("/", "\\").split("\\")[:i+1]),
|
||||||
path.split("\\")[i]])
|
path.replace("/", "\\").split("\\")[i]])
|
||||||
if len(breadcrumbs) == 1:
|
if len(breadcrumbs) == 1:
|
||||||
breadcrumbs = [["{}:\\".format(chr(i)), "{}:\\".format(chr(i))] for i in range(65, 91) if os.path.exists("{}:".format(chr(i)))]
|
breadcrumbs = [["{}:\\".format(chr(i)), "{}:\\".format(chr(i))] for i in range(65, 91) if os.path.exists("{}:".format(chr(i)))]
|
||||||
else:
|
else:
|
||||||
|
@ -395,6 +395,7 @@ def get_folder_path_info(base):
|
||||||
# Paths/breadcrumbs is a list of lists, where the first element in the sublist is the full path and the second is the folder name
|
# Paths/breadcrumbs is a list of lists, where the first element in the sublist is the full path and the second is the folder name
|
||||||
return (paths, breadcrumbs)
|
return (paths, breadcrumbs)
|
||||||
|
|
||||||
|
|
||||||
def getModelSelection(modellist):
|
def getModelSelection(modellist):
|
||||||
print(" # Model\t\t\t\t\t\tVRAM\n ========================================================")
|
print(" # Model\t\t\t\t\t\tVRAM\n ========================================================")
|
||||||
i = 1
|
i = 1
|
||||||
|
|
Loading…
Reference in New Issue