How do I import a sage library? Mine is called functions.sage
. But when I import - python says it doesn't know it. I tried:
__import__('functions.sage')
and also:
import imp
imp.load_source('fun', 'functions.sage')
None works!
1 | initial version |
How do I import a sage library? Mine is called functions.sage
. But when I import - python says it doesn't know it. I tried:
__import__('functions.sage')
and also:
import imp
imp.load_source('fun', 'functions.sage')
None works!