mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 17:39:16 +02:00
edit some import to be compatible with python 2.7
This commit is contained in:
parent
097f3af92f
commit
c79309e091
1 changed files with 4 additions and 3 deletions
|
@ -17,10 +17,13 @@ Options:
|
||||||
--version Show version.
|
--version Show version.
|
||||||
"""
|
"""
|
||||||
from os.path import dirname, realpath
|
from os.path import dirname, realpath
|
||||||
from sys.path import insert
|
import sys
|
||||||
|
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
|
|
||||||
|
# Allows you to a relative import from the parent folder
|
||||||
|
sys.path.insert(0, dirname(realpath(__file__)) + "/lib")
|
||||||
|
|
||||||
import yt_upload
|
import yt_upload
|
||||||
import pt_upload
|
import pt_upload
|
||||||
|
|
||||||
|
@ -50,8 +53,6 @@ def validateVideo(path):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# Allows you to a relative import from the parent folder
|
|
||||||
insert(0, dirname(realpath(__file__)) + "/lib")
|
|
||||||
|
|
||||||
options = docopt(__doc__, version=VERSION)
|
options = docopt(__doc__, version=VERSION)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue