X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fresources%2Flinux%2Fapplication.py;h=08ea7004fca5995eab7c663d8c541c490553741f;hb=f7c6792813947d3707accd690ad7bbe83277798f;hp=af6ae34d2180a76f4442f4a900b19e1c3da8e3be;hpb=998aa11be6a89197a3b30c0645771c467cad8c13;p=nepi.git diff --git a/src/nepi/resources/linux/application.py b/src/nepi/resources/linux/application.py index af6ae34d..08ea7004 100644 --- a/src/nepi/resources/linux/application.py +++ b/src/nepi/resources/linux/application.py @@ -360,6 +360,13 @@ class LinuxApplication(ResourceManager): def execute_deploy_command(self, command, prefix="deploy"): if command: + # replace application specific paths in the command + command = self.replace_paths(command) + + # replace application specific paths in the environment + env = self.get("env") + env = env and self.replace_paths(env) + # Upload the command to a bash script and run it # in background ( but wait until the command has # finished to continue ) @@ -704,6 +711,7 @@ class LinuxApplication(ResourceManager): def execute_command(self, command, env = None, sudo = False, + tty = False, forward_x11 = False, blocking = False): @@ -715,6 +723,7 @@ class LinuxApplication(ResourceManager): return self.node.execute(command, sudo = sudo, + tty = tty, forward_x11 = forward_x11, blocking = blocking)