some changes to make remote testing work better - slightly hackish and will remain so until 'tox' is used to create environments and properly set things up.

This commit is contained in:
holger krekel
2010-11-13 19:47:01 +01:00
parent a0652e9d99
commit d81ffaa980
6 changed files with 38 additions and 16 deletions

View File

@@ -121,6 +121,11 @@ def remote_initconfig(option_dict, args):
if __name__ == '__channelexec__':
slaveinput,args,option_dict = channel.receive()
importpath = os.getcwd()
sys.path.insert(0, importpath) # XXX only for remote situations
os.environ['PYTHONPATH'] = (importpath + os.pathsep +
os.environ.get('PYTHONPATH', ''))
#os.environ['PYTHONPATH'] = importpath
import py
config = remote_initconfig(option_dict, args)
config.slaveinput = slaveinput