按顺序使用python运行*.net文件

按顺序使用python运行*.net文件,python,pspice,Python,Pspice,我为一个使用Pspice和*.net文件的项目工作。在我的代码中,我使用一个按钮选择*.net文件,并在条目中返回它们的路径。以下代码不适用于它们应该从Pspice解算器(psp_cmd.exe)运行的路径。我希望我的*.net文件从Pspice解算器(psp.exe)执行按顺序创建*.out文件。你有什么建议 file_path= [] def selected(): file_path= tk.filedialog.askopenfilenames() print(

我为一个使用Pspice和*.net文件的项目工作。在我的代码中,我使用一个按钮选择*.net文件,并在条目中返回它们的路径。以下代码不适用于它们应该从Pspice解算器(psp_cmd.exe)运行的路径。我希望我的*.net文件从Pspice解算器(psp.exe)执行按顺序创建*.out文件。你有什么建议

file_path= []
def selected():
    
    file_path= tk.filedialog.askopenfilenames()
    print(file_path)
    myEntry.insert(tk.END,file_path)
    filepath2=('\n'.join(map(str,file_path)))
    print(filepath2),str
    Pspice="D:/tools/bin/psp_cmd.exe "
    for f in file_path:
        subprocess.call([Pspice ,"-r",f])