Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Running Python script from terminal vs studio

Question
Akshay Pandey · Oct 25, 2021

Running Python script from terminal vs studio

I have created on class method which execute below command

From terminal : _System account works fine where code=0

From Studio : _System account give syntax error where code=1

set code = $zf(-1,"python C:\keys\GetToken.py")

w !, code

#Caché
Product version: IRIS 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1 (Build 215U) Mon Mar 30 2020 20:14:33 EDT

Source URL:https://community.intersystems.com/post/running-python-script-terminal-vs-studio