Browse Source

Fixed bugs in Windows-Python3 workaround

Aaron Gokaslan 9 years ago
parent
commit
7af6121d2b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      bin/youtube-upload
  2. 1 1
      bin/youtube-upload.bat

+ 1 - 1
bin/youtube-upload

@@ -4,7 +4,7 @@ if __name__ == '__main__':
     
     #Allows you to a relative import from the parent folder
     import os.path, sys
-    sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))    
+    sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))    
     
     from youtube_upload import main    
     main.run()

+ 1 - 1
bin/youtube-upload.bat

@@ -1 +1 @@
-python %~dp0\youtube-upload %*
+python %~dp0youtube-upload %*