edit some import to be compatible with python 2.7

This commit is contained in:
LecygneNoir 2018-03-09 11:13:05 +01:00
parent 097f3af92f
commit c79309e091

View file

@ -17,10 +17,13 @@ Options:
--version Show version.
"""
from os.path import dirname, realpath
from sys.path import insert
import sys
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 pt_upload
@ -50,8 +53,6 @@ def validateVideo(path):
if __name__ == '__main__':
# Allows you to a relative import from the parent folder
insert(0, dirname(realpath(__file__)) + "/lib")
options = docopt(__doc__, version=VERSION)