From fec89790b19d804eecb7318e5da64dbb1445c7f0 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Fri, 7 Dec 2012 12:04:52 +0100 Subject: and now, also py2exe compiles fine :) (on Windows) --- youtube_dl/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube_dl/__main__.py') diff --git a/youtube_dl/__main__.py b/youtube_dl/__main__.py index 0910e9d15..7f8410f2a 100755 --- a/youtube_dl/__main__.py +++ b/youtube_dl/__main__.py @@ -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__)))) -- cgit v1.2.3 From 5a304a7637c033dea00ff46d6980075b63d17f24 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Sat, 8 Dec 2012 00:48:07 +0100 Subject: new updating scheme, based on GH downloads; also, check if not updateable (pip installed) --- youtube_dl/__main__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube_dl/__main__.py') diff --git a/youtube_dl/__main__.py b/youtube_dl/__main__.py index 7f8410f2a..7022ea4be 100755 --- a/youtube_dl/__main__.py +++ b/youtube_dl/__main__.py @@ -7,6 +7,7 @@ import sys if __package__ is None and not hasattr(sys, "frozen"): + # direct call of __main__.py import os.path sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -- cgit v1.2.3