Hi,
On 14 Mrz., 17:22, vdelecroix <[email protected]> wrote:
> Hello,
>
> > I would like to know whether I could write a user defined module,
> > store it on e.g. our (!) SAGE server sage.informatik.hs-bremen.de
> > and access functions of such a module by importing the module into
> > another module on the the SAGE server.
>
> You just have to write in a cell
>
> attach "/home/me/my_file.py"
>
> where the argument is the total path to your file inside quotes. It is
> not yet possible to attach file that are not on the server.
> Instead of attach you may use load depending on your usage.
>
> Vincent
thanks, I tried all that on www.sagenb.org.
I could access files many of the files of 221 visible 'users' in /
home,
like some vincent, a certain notorious wstein, a victor, a carlos, a
Ulrike etc. by
import os; dn = '/home/some_user'; os.listdir(dn);
os.chdir(dn); fin = open('some_file'); fin.read(); ...
but I could _not_ access a directory /home/risse which is me on www.sagenb.org
Imho this is a security leak and at the same time rather dodgy:
I still do not know where to find my *.sage, *.py or *.pyx files on
www.sagenb.org
which I want to import into another worksheet. Any help very much
appreciated, EM
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org