0

我正在尝试使用 supercollider 在 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)

但是,当我实际运行它时,程序正在启动,但从未真正尝试运行我文件中的参数。

如何使 supercollider(特别是 sclang(FoxDot 用于运行的服务器))与所述参数一起运行?

谢谢

4

1 回答 1

0

字符串连接可能是问题所在:thisdir+"/FoxDot/.."/FoxDot. 使用时不插入此空间thisdir++"/..

于 2020-05-07T16:57:11.143 回答