and now, also py2exe compiles fine :) (on Windows)
[youtube-dl] / youtube_dl / __main__.py
index 0910e9d1576f261154827a64d828f80a83617418..7f8410f2a7e4d3d1866459a92a558ae3c41d07c4 100755 (executable)
@@ -6,7 +6,7 @@
 
 import sys
 
-if __package__ is None:
+if __package__ is None and not hasattr(sys, "frozen"):
     import os.path
     sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))