← Back to team overview

yade-users team mailing list archive

Re: [Question #661017]: call a class from yade

 

Question #661017 on Yade changed:
https://answers.launchpad.net/yade/+question/661017

Jan Stránský proposed the following answer:
Hello,

> ImportError: No module named myclass

it means that your main script ("another file") does not know where to look for myclass.py . What is location of myclass.py and the main script?
You can also try
###
import sys
sys.path.append('.')
###
before from myclass import simul

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.