From cd6f08ff7a838c71ce2277dea0905e3b85134dda Mon Sep 17 00:00:00 2001 From: mk-pmb Date: Sun, 3 Apr 2016 15:47:28 +0200 Subject: [PATCH] Offer wrapper for library path detection --- bin/youtube-dl.detect-path.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/youtube-dl.detect-path.py diff --git a/bin/youtube-dl.detect-path.py b/bin/youtube-dl.detect-path.py new file mode 100755 index 000000000..eff651302 --- /dev/null +++ b/bin/youtube-dl.detect-path.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +# -*- coding: UTF-8, tab-width: 4 -*- + +from __future__ import unicode_literals +# ^-- not used, but expected by ../test/test_unicode_literals.py + +import os.path +import sys + +wrapper_path = os.path.realpath(__file__) +sys.path.append(os.path.dirname(os.path.dirname(wrapper_path))) +execfile(wrapper_path.rsplit('.', 2)[0])