auto read script

Helen
Helen Member Posts: 4 **

1.How to use code let workbench read Journal script?
2.How to use code let SCDM red .py file?

Comments

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 322
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    Workbench:
    RunScript(r"D:\Temp\test.wbjn")

    SCDM:
    execfile(r"D:\Temp\SC_script.py")

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 361
    25 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    execfile is a python function and not tied to an API. It runs the script from the given file.
    SCDM also has the ability to file>open a .py file and the scripting console will open it. You can then “run” the file from the console play button.
    WB has a console for commands, but no functionality to open a .py file.