我正在尝试用超级对撞机为python中的FoxDot模块编写一个自动启动系统。
我现在的主要问题是当我运行以下代码时:
if(running == False):
startup = thisdir+"/FoxDot/startup.scd" #the location where my startup file is
subprocess.Popen([sclangloc], 0, startup, cwd=ourcwd, shell=True, ) #boot program with file containing arguments (FoxDot.start)但是,当我实际运行此程序时,程序正在启动,但实际上从未尝试运行文件中的参数。
如何让超级对撞机(特别是sclang ( FoxDot用来运行的服务器))使用上述参数运行?
谢谢你
发布于 2020-05-08 00:57:11
字符串连接可能是问题所在:thisdir+"/FoxDot/.."在/FoxDot之前插入一个空格。使用thisdir++"/..时不插入此空格。
https://stackoverflow.com/questions/59400111
复制相似问题