Skip to content

Commit

Permalink
only auto detect portable if not already specified
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAgo committed Apr 17, 2024
1 parent 8dbd295 commit 73ee3bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions electron-cash
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,11 @@ def process_config_options(args):
config_options["cwd"] = os.getcwd()

# fixme: this can probably be achieved with a runtime hook (pyinstaller)
meipass = getattr(sys, "_MEIPASS", None)
if meipass:
tmp_folder = os.path.join(meipass, "is_portable")
config_options["portable"] = is_pyinstaller and os.path.exists(tmp_folder)
if not config_options.get("portable"):
meipass = getattr(sys, "_MEIPASS", None)
if meipass:
tmp_folder = os.path.join(meipass, "is_portable")
config_options["portable"] = is_pyinstaller and os.path.exists(tmp_folder)

if config_options.get("portable"):
if is_local:
Expand Down

0 comments on commit 73ee3bd

Please sign in to comment.