Commits

Anonymous committed fa8a924

handle case where running from current dir

  • Participants
  • Parent commits e4fa0b2

Comments (0)

Files changed (1)

         print >> sys.stderr, __doc__
         sys.exit(2)
     #Add toplevel repository dir to sys.path
-    sys.path.insert(0,os.path.dirname(os.path.dirname(__file__)))
+    sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
     import pytest
     import pytest_cov
     sys.exit(pytest.main(plugins=[pytest_cov]))