Commit 5c10fbda by Csók Tamás

client: accent corrections

parent 6f2b7aef
......@@ -41,9 +41,9 @@ def connect(vm):
'user': vm.user,
'host': vm.host})
directory = os.path.dirname(os.path.abspath(__file__))
logger.debug('Popen: %s\\putty.exe', directory)
logger.debug('Popen: "%s\\putty.exe"', directory)
logger.info('Determined arguments: %s', arguments)
subprocess.Popen("%(path)s\\putty.exe %(arguments)s" % {
subprocess.Popen('"%(path)s\\putty.exe" %(arguments)s' % {
'path': directory,
'arguments': arguments}, shell=True)
elif vm.protocol == "NX":
......@@ -71,7 +71,7 @@ def connect(vm):
f.close()
logger.info('Config file created: %s', config_file)
logger.debug('Popen the config file: %s', config_file)
subprocess.Popen(config_file, shell=True)
subprocess.Popen('"%s"' % config_file, shell=True)
elif vm.protocol == "RDP":
logger.debug('NX protocol received')
listdir = ClientRegistry.directory() + "\\.rdp\\*.rdp"
......@@ -99,7 +99,7 @@ def connect(vm):
f.close()
logger.info('Config file created: %s', config_file)
logger.debug('Popen the config file: %s', config_file)
subprocess.Popen(config_file, shell=True)
subprocess.Popen('"%s"' % config_file, shell=True)
logger.info('Client finished working')
NX_template = """<!DOCTYPE NXClientSettings>
......
......@@ -133,7 +133,7 @@ def main():
if args.nx:
print "Running NX Client install"
subprocess.call(
"python %s\\nx_client_installer.py" % os.path.dirname(
'python "%s\\nx_client_installer.py"' % os.path.dirname(
os.path.realpath(__file__)))
print "Creating icon in the installation folder"
location = os.path.join(desktop_path, "CIRCLE Client.url")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment