Exit yade

Asked by anna effeindzourou

Hi all,

Is it possible to leave yade from the python script?

Thanks in advance

Anna

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Kneib François
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hi Anna

import sys
[...]
sys.exit()

could be the solution
Jan
______________________________________________________________
> Od: "anna effeindzourou" <email address hidden>
> Komu: <email address hidden>
> Datum: 20.06.2011 11:22
> Předmět: [Yade-users] [Question #162068]: Exit yade
>
>New question #162068 on Yade:
>https://answers.launchpad.net/yade/+question/162068
>
>Hi all,
>
>Is it possible to leave yade from the python script?
>
>Thanks in advance
>
>Anna
>
>--
>You received this question notification because you are a member of
>yade-users, which is an answer contact for Yade.
>
>_______________________________________________
>Mailing list: https://launchpad.net/~yade-users
>Post to : <email address hidden>
>Unsubscribe : https://launchpad.net/~yade-users
>More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Best Kneib François (francois-kneib) said :
#2

Or, without importing anything :
Just write %Exit

Revision history for this message
anna effeindzourou (anna-effeindzourou) said :
#3

Thanks Kneib François, that solved my question.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#4

You can start yade like "yade -x script.py", and yade will finish at the
end of the scirpt.