← Back to team overview

yade-dev team mailing list archive

Re: Interesting python usage

 

I found the error, because there was a syntax error in the python code.  And the module wasn't detected.

Going back to the question, where is yade declared as a module?  it's not declared in PYTHONPATH in .bashrc.


Yours,

Boon

----------------------------------------
> From: booncw@xxxxxxxxxxx
> To: yade-dev@xxxxxxxxxxxxxxxxxxx
> Date: Sun, 4 Apr 2010 06:37:59 +0800
> Subject: Re: [Yade-dev] Interesting python usage
>
>
> Thanks Vaclav, "from yade import *" worked. I can call O.bodies[0].state.pos from my script now.
>
> I have added the PYTHONPATH in .bashrc to point to the directory where my script is saved.  But today I have coded more lines and the YADE C file couldn't detect the module.  When I deleted the extra lines, it succesfully detects the module again.  Why is this happening?  Btw, where is yade declared as a module?  My PYTHONPATH doesn't point to yade's directory.
>
>
> Yours,
>
> Boon
>
> _________________________________________________________________
> Hotmail: Free, trusted and rich email service.
> https://signup.live.com/signup.aspx?id=60969
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help : https://help.launchpad.net/ListHelp
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969


Follow ups

References