aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/update.py')
-rw-r--r--youtube_dl/update.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/update.py b/youtube_dl/update.py
index 84c964617..002ea7f33 100644
--- a/youtube_dl/update.py
+++ b/youtube_dl/update.py
@@ -9,7 +9,6 @@ import subprocess
import sys
from zipimport import zipimporter
-from .compat import compat_realpath
from .utils import encode_compat_str
from .version import __version__
@@ -85,9 +84,7 @@ def update_self(to_screen, verbose, opener):
print_notes(to_screen, versions_info['versions'])
# sys.executable is set to the full pathname of the exe-file for py2exe
- # though symlinks are not followed so that we need to do this manually
- # with help of realpath
- filename = compat_realpath(sys.executable if hasattr(sys, 'frozen') else sys.argv[0])
+ filename = sys.executable if hasattr(sys, 'frozen') else sys.argv[0]
if not os.access(filename, os.W_OK):
to_screen('ERROR: no write permissions on %s' % filename)