Commits

jpellerin  committed 3eb7fb6

(Hack?) sys.path needs munging for load by name to work

  • Participants
  • Parent commits 2f761b6

Comments (0)

Files changed (1)

File nose2/main.py

 import os
+import sys
 
 from unittest2.main import TestProgram, USAGE_AS_MAIN
 
 
 
 def main_():
+    sys.path.insert(0, os.getcwd())
     TestProgram.USAGE = USAGE_AS_MAIN
     TestProgram(module=None, config=plugins.configFile())