On 2017-05-31 12:42, Paul Leopardi wrote:


On Wednesday, 31 May 2017 19:39:32 UTC+10, Jeroen Demeyer wrote:

    I think you need to import sage.all first, before importing anything
    else from sage.


Thanks, in which file do you mean, every Python file that uses Sage, or
some specific file?

Well, you just have to make sure that the statement "import sage.all" is executed at least once before importing anything from Sage. Now, in practice, the easiest way to achieve that is to put "import sage.all" in the top-level __init__.py file of your package. Note that this will cause Sage imported when importing anything from your package (this may or may not be what you want).

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to