diff --git a/CodeAtlas.py b/CodeAtlas.py index eadc665..90b545e 100644 --- a/CodeAtlas.py +++ b/CodeAtlas.py @@ -18,10 +18,12 @@ def run(self): socketThread = DataManager.instance().getSocket(self.window.id()) # command line window - subprocess.Popen('%s\\codeView.bat %s' % (curPath, socketThread.remoteAddress[1]), cwd = curPath, stdout = None) + cmd = ["{}/codeView.bat".format(curPath), str(socketThread.remoteAddress[1])] + print('cmd: ', cmd) + subprocess.Popen(cmd, shell=True, cwd = curPath, stdout = None) # no command line window - curPath = curPath + '\\CodeViewPy' + curPath = curPath + '/CodeViewPy' cmdStr = 'main %s' % (socketThread.remoteAddress[1], ) # subprocess.Popen(cmdStr, cwd = curPath, shell = True )