aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/utils.py')
-rw-r--r--youtube_dlc/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/utils.py b/youtube_dlc/utils.py
index 8f051cd1b..5aaec4f17 100644
--- a/youtube_dlc/utils.py
+++ b/youtube_dlc/utils.py
@@ -5936,7 +5936,7 @@ def make_dir(path, to_screen=None):
def get_executable_path():
path = os.path.dirname(sys.argv[0])
- if os.path.abspath(sys.argv[0]) != os.path.abspath(sys.executable): # Not packaged
+ if os.path.basename(sys.argv[0]) == '__main__': # Running from source
path = os.path.join(path, '..')
return os.path.abspath(path)