Browse Source

edit some import to be compatible with python 2.7

develop
LecygneNoir 6 years ago
parent
commit
c79309e091
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      ptyt_upload.py

+ 4
- 3
ptyt_upload.py 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)

Loading…
Cancel
Save