X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fsfiprocess.py;h=d2e806dbec5cab71ba2fa3bcd3c9d0ff5bc66b80;hp=05199c9ec1c62fb4d0b92a5b7cb89ba40bd62dd5;hb=4d2afaf8faf213e4d55dd3b2188071a57dd74124;hpb=e5eb62ef022ab41be7f2eb0b3ac8723874d1601a diff --git a/sface/sfiprocess.py b/sface/sfiprocess.py index 05199c9..d2e806d 100644 --- a/sface/sfiprocess.py +++ b/sface/sfiprocess.py @@ -3,7 +3,7 @@ import os import time from PyQt4.QtCore import * -from sface.sficonfig import config +from sface.config import config def find_executable(exec_name): """find the given executable in $PATH""" @@ -65,6 +65,16 @@ class SfiProcess(QObject): self.__init_command(args) self.start() + def applyRSpec(self, rspec): + filename = config.getSliceRSpecFile() + "_new" + rspec.save(filename) + args = ["-u", config.getUser(), "-a", config.getAuthority(), + "-r", config.getRegistry(), "-s", config.getSlicemgr(), "create", + config.getSlice(), filename] + self.__init_command(args) + self.start() + return filename + def start(self): self.trace_command() self.process.start(self.exe, self.args)