LinuxApplication: Changed directory structure to store experiment files in the Linux...
[nepi.git] / src / nepi / resources / linux / ccn / ccnapplication.py
index e5ae00e..39ac2a9 100644 (file)
@@ -51,7 +51,7 @@ class LinuxCCNApplication(LinuxApplication):
 
     @property
     def _environment(self):
-        env = "PATH=$PATH:${EXP_HOME}/ccnx/bin "
+        env = "PATH=$PATH:${STORE}/ccnx/bin "
         return env            
        
     def execute_command(self, command, env):
@@ -59,12 +59,7 @@ class LinuxCCNApplication(LinuxApplication):
         command = environ + command
         command = self.replace_paths(command)
 
-        (out, err), proc = self.node.execute(command)
-
-        if proc.poll():
-            self._state = ResourceState.FAILED
-            self.error(msg, out, err)
-            raise RuntimeError, msg
+        return self.node.execute(command)
 
     def valid_connection(self, guid):
         # TODO: Validate!