Fix pythonpath
authorClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Wed, 5 Oct 2011 19:07:52 +0000 (16:07 -0300)
committerClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Wed, 5 Oct 2011 19:07:52 +0000 (16:07 -0300)
examples/POPI/run_one_experiment.py

index 0b94995..0280654 100644 (file)
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
-from nepi.core.execute import ExperimentController
 import os
+import os.path
 import re
 import time
 import commands
@@ -15,6 +15,10 @@ import sys
 import cPickle
 import gzip
 
+sys.path.append(os.path.abspath("../../src"))
+
+from nepi.core.execute import ExperimentController
+
 class PopiExperiment(object):
     def run(self, duration, xml_filepath, testset, results_dir, iteration):
         app_guid = 8