diff options
-rw-r--r-- | src/linux/ogOperations.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 076aa3d..605bde9 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -62,9 +62,12 @@ def execCMD(request, ogRest): def session(request, ogRest): disk = request.getDisk() partition = request.getPartition() + cmd = f'{OG_PATH}interfaceAdm/IniciarSesion {disk} {partition}' try: - ogRest.proc = subprocess.Popen([OG_PATH + 'interfaceAdm/IniciarSesion', disk, partition], stdout=subprocess.PIPE, shell=True) + ogRest.proc = subprocess.Popen([cmd], + stdout=subprocess.PIPE, + shell=True) (output, error) = ogRest.proc.communicate() except: raise ValueError('Error: Incorrect command value') |