Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

execfile() and arguments

Status
Not open for further replies.

loki3000

Mechanical
Sep 29, 2009
652
0
0
SI
is it possible to somehow pass arguments (like in linux: ./do.py option option) to execfile or similar function?
i prefer to run my scripts in abaqus as i can have access to the entire variable set and it helps with debugging...
 
Replies continue below

Recommended for you

loki3000,
As far as I know, you can't use arguments in execfile('') but there are another ways to do the same:
1) you can use getinput() in your script
2) you can define a function with an input argument in your script

Regards,
Mohammad Mahdi Shahbazi
 
Status
Not open for further replies.
Back
Top