X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=nepi%2Fresources%2Flinux%2Fapplication.py;h=fe4ca5a0eeb9794ed076e5b3dbcd59ba79c8a816;hp=f9a37e1678920aaf9e2eab13c5650e9ab15d599a;hb=0a6db897c6815e0bd48f1646943f2f1d9d73abae;hpb=77008816b3a7de0a39ba169ffc0579135a058b98 diff --git a/nepi/resources/linux/application.py b/nepi/resources/linux/application.py index f9a37e16..fe4ca5a0 100644 --- a/nepi/resources/linux/application.py +++ b/nepi/resources/linux/application.py @@ -355,7 +355,7 @@ class LinuxApplication(ResourceManager): command = self.get("command") if command and not self.in_foreground: - self.info("Uploading command '{}'".format(command)) +# self.info("Uploading command '{}'".format(command)) # replace application specific paths in the command command = self.replace_paths(command) @@ -764,6 +764,8 @@ class LinuxApplication(ResourceManager): .replace("${RUN_HOME}", run_home) .replace("${NODE_HOME}", node.node_home) .replace("${HOME}", node.home_dir) + # a shortcut to refer to the file uploaded as 'code = ' + .replace("${CODE}", "{}/code".format(app_home)) ) def valid_connection(self, guid):