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!
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.