Browse Source

Touch up Client/clientlaunch

Ian Goldberg 1 year ago
parent
commit
faa016dfb7
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Client/clientlaunch

+ 5 - 5
Client/clientlaunch

@@ -8,14 +8,14 @@ import sys
 import threading
 import yaml
 sys.path.insert(0, os.getcwd())
-sys.path.insert(1, './../App/')
+sys.path.insert(1, '../App/')
 import mkconfig
 
 # The default manifest file
-MANIFEST = "./../App/manifest.yaml"
+MANIFEST = "../App/manifest.yaml"
 
 # The default pubkeys file
-PUBKEYS = "./../App/pubkeys.yaml"
+PUBKEYS = "../App/pubkeys.yaml"
 
 # The client binary
 CLIENTS = "./clients"
@@ -29,7 +29,7 @@ def launch(config, cmd, threads, lgfile):
     cmdline += prefix + CLIENTS + " -t " + str(threads) + ""
 
     stdout_file = subprocess.PIPE
-    if(lgfile):
+    if lgfile:
         stdout_file = open(lgfile, "a+")
 
     proc = subprocess.Popen(shlex.split(cmdline) + cmd,
@@ -38,7 +38,7 @@ def launch(config, cmd, threads, lgfile):
     print(cmdline)
     proc.stdin.write(config.encode('utf-8'))
 
-    if(lgfile):
+    if lgfile:
         proc.wait()
         stdout_file.close()
     else: