I want to write a Sage module, say "function_field.py", that uses Singular 
functions defined in a library, say "singular_core.lib". My questions are

(1) Where should I put the library file? I guess it should be along with 
the Sage module file.

(2) If so, then how should I load the library? I know I can use "lib" 
function in sage.libs.singular.function. But how can I find out the path to 
the library? I can think of using "__file__" in the Sage module. But this 
does not seem to be a right way...

I looked through the source, but could not find an example for this style 
of coding. 

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

Reply via email to