RoboDK Forum
python program with in variables-Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+——线程:python程序的变量(/Thread-python-program-with-in-variables)



python program with in variables-jeas-07-09-2020

how can i define a python program with variables.
like "Job_finished (10,2)"



RE: python program with in variables-Albert-07-09-2020

RoboDK passes arguments as command line arguments. Therefore, you can simply collect the parameters in your Python script using sys.argv. I attached a sample file that uses this concept.