Skip to content

Commit

Permalink
Default to the current directory when running a frozen application
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Feb 11, 2024
1 parent 3dc0eeb commit 1988035
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spotdl/console/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def console_entry_point():
# If the application is frozen start web ui
# or if the operation is `web`
if is_executable() or arguments.operation == "web":

# Default to the current directory when running a frozen application
if is_executable():
web_settings["web_use_output_dir"] = True

# Start web ui
web(web_settings, downloader_settings)

Expand Down

0 comments on commit 1988035

Please sign in to comment.