Not directly related to your question...but for others...how to modify path 
and how to load python file

Alternative answer to question given in the SAGE cloud wiki-FAQ 
https://github.com/sagemath/cloud/wiki/FAQ

*Question: I would like that all of my worksheets know where to find a 
given module that I write or install.*
1.In your project, create new Folder   (example: modules)
2.Add one python source file on that folder (example; DrawingConstants.py 
with lines "DrawingConstants module loading...", various python lines, and 
"...DrawingConstants module loaded.")
3.In worksheet cell, if you want to use constant or function from 
DrawingConstants.py file

import sys
sys.path.append('./modules')
# sys.path
import DrawingConstants
...
print "constant zz from  DrawingConstants = ",DrawingConstants.zz

You have to Restart worksheet after you make changes to DrawingConstants.py.

Dominique

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to