Commits

Lennart Regebro  committed d388a04

Fix for Py3 + put path first in sys.path instead of last.

  • Participants
  • Parent commits d01c9db

Comments (0)

Files changed (2)

File pyroma/projectdata.py

         os.chdir(self._path)
         
         if self._path not in sys.path:
-            sys.path.append(self._path)
+            sys.path.insert(0, self._path)
             self._path_appended = True
         else:    
             self._path_appended = False

File scripts/pyroma

 from pyroma import projectdata, distributiondata, pypidata, ratings
 
 if len(sys.argv) < 2:
-    print "Usage: pyroma <project directory|file|project name>"
+    print("Usage: pyroma <project directory|file|project name>")
     sys.exit(1)
     
 argument = sys.argv[1]