Post Reply 
Pass parameter to Python?
09-08-2023, 03:05 AM
Post: #3
RE: Pass parameter to Python?
(09-07-2023 11:55 AM)roadrunner Wrote:  Try this:

Code:
#PYTHON myfunc
from sys import argv
print(argv[0]);
#END

EXPORT PassParm(y)
BEGIN
 PYTHON(myfunc,y);
END;

-road

Thanks! That works fine. I ended up using this


Code:
#PYTHON myfunc(a)
from sys import argv
print(argv[0]);
#END

EXPORT PassParm(y)
BEGIN
  myfunc(y);
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Pass parameter to Python? - toml_12953 - 09-07-2023, 11:22 AM
RE: Pass parameter to Python? - roadrunner - 09-07-2023, 11:55 AM
RE: Pass parameter to Python? - toml_12953 - 09-08-2023 03:05 AM



User(s) browsing this thread: 1 Guest(s)