Fix relative split.
This commit is contained in:
parent
256d690a19
commit
c9b337a27a
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ for option in config["pyinstallerOptions"]:
|
||||||
if option["optionDest"] in ["datas", "filenames", "icon_file"]:
|
if option["optionDest"] in ["datas", "filenames", "icon_file"]:
|
||||||
# If we wanted a relative output directory, this will go missing in abspath on windows.
|
# If we wanted a relative output directory, this will go missing in abspath on windows.
|
||||||
relative_fix = False
|
relative_fix = False
|
||||||
if option["value"].split(";")[1] == "./":
|
split = option["value"].split(";")
|
||||||
|
if len(split) > 1 and split[1] == "./":
|
||||||
relative_fix = True
|
relative_fix = True
|
||||||
|
|
||||||
option["value"] = os.path.abspath(parent_path + option["value"])
|
option["value"] = os.path.abspath(parent_path + option["value"])
|
||||||
|
|
Loading…
Reference in a new issue