mirror of
https://gitlab.com/ytdl-org/youtube-dl.git
synced 2025-11-01 14:32:23 -04:00
and now, also py2exe compiles fine :) (on Windows)
This commit is contained in:
@@ -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__))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user