mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-22 16:44:32 +01:00
Offer wrapper for library path detection
This commit is contained in:
parent
d2ae7e24e5
commit
cd6f08ff7a
12
bin/youtube-dl.detect-path.py
Executable file
12
bin/youtube-dl.detect-path.py
Executable file
@ -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])
|
Loading…
Reference in New Issue
Block a user