X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=blobdiff_plain;f=devscripts%2Fmake_supportedsites.py;h=764795bc5b1e560b033c2e9a0c395cecb10b1242;hp=3df4385a6b09a520791f67f8f3958c0b635df1bf;hb=6cd452acffe8d79c895a2ebd0346e2ba7f9e112f;hpb=bc694039e47cc871c98abacdf1c0a2e5a257a8a4 diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py index 3df4385a6..764795bc5 100644 --- a/devscripts/make_supportedsites.py +++ b/devscripts/make_supportedsites.py @@ -9,7 +9,7 @@ import sys # Import youtube_dl ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') -sys.path.append(ROOT_DIR) +sys.path.insert(0, ROOT_DIR) import youtube_dl @@ -41,5 +41,6 @@ def main(): with io.open(outfile, 'w', encoding='utf-8') as outf: outf.write(out) + if __name__ == '__main__': main()