Since you are using a python script SHCS.py, sys.executable might be what you want instead of cmd.exe after all you can test that in here. From there, you can import subprocess and then try n(.) with one of the argument sets I mentioned above. When Py is selected, you can type Python commands in there to be executed using Fusion's Python interpreter. On that window, there's a radio selector in the bottom right: Text, Py, and Js. If it's there, click it to show a text command window at the bottom of Fusion if it says Hide Text Commands, then the window is already opened somewhere. What I might do if I were you is this: go to Fusion, and click on File (at the top left, to the right of the A360 data panel), then hover over View, and look for Show Text Commands. The subprocess module must be used inside of a Python process, either as part of a Fusion script or add-in, or by running Python from your PowerShell command line first. It looks like you maybe be running these commands from a PowerShell command line, which is where the errors about missing type name and so forth are coming from. + FullyQualifiedErrorId : EndSquareBracketExpectedAtEndOfAttributeĪnd when I run: n()
![running part of batch script example running part of batch script example](https://i.stack.imgur.com/ad9x1.png)
Unexpected token ')' in expression or statement. Unexpected token ']' in expression or statement. Missing ] at end of attribute or type literal. + n()įilepath = os.path.dirname(os.path.realpath( _file_ ))
![running part of batch script example running part of batch script example](https://i.ytimg.com/vi/WeyqPVk6yag/maxresdefault.jpg)
![running part of batch script example running part of batch script example](https://i.stack.imgur.com/6y2L5.jpg)
Then I tried: filepath = os.path.dirname(os.path.realpath( _file_ )) + FullyQualifiedErrorId : MissingTypename + CategoryInfo : ParserError: (:), ParentContainsErrorRecordException