Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-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
Joined
Sep 29, 2009
Messages
652
Location
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...
 
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.

Part and Inventory Search

Sponsor

Back
Top