[Má...] Posted May 31, 2021 Share Posted May 31, 2021 Hello All, I would like to start the program and one of the script by using external python script. I could open the software with the following: ----------- filepath = 'C:/Program Files/GOM/2020/bin/gom_inspect.exe' import os os.startfile(filepath) ----------- Could you give advice about starting a script with external python? BR, Máté Link to comment Share on other sites More sharing options...
[Th...] Posted June 3, 2021 Share Posted June 3, 2021 There is an "-eval" command line parameter which can be used to run scripts in GOM Software by importing them. Lets's assume you have such a script called my_script in GOM Software: Than you can run it by command line parameter from another script this way: import subprocess subprocess.call ('"C:/Program Files/GOM/2020/bin/gom_inspect.exe" -eval "import my_script"') Link to comment Share on other sites More sharing options...
[Má...] Posted June 3, 2021 Author Share Posted June 3, 2021 Please sign in to view this quote. Link to comment Share on other sites More sharing options...
[ca...] Posted June 23, 2022 Share Posted June 23, 2022 Hello, I am using Gom Suite (2021 version). I need to open blade inspect pro after opening suite. Could you please share updated code for 2021 version? Thanks, Canset Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in