On Mon, Sep 8, 2008 at 7:57 AM, Simon King <[EMAIL PROTECTED]> wrote:
>
> Dear team,
>
> in some Sage/Cython program i am also using some executables. More
> precisely, it is a Gap sub-process that needs to run these
> executables.
>
> Now i wonder whether it is possible to change my PATH from within a
> Sage session.
>
> I know that i can get the PATH with
>  sage: os.environ['PATH']
> and so i tried to change os.environ. But it didn't help, apparently
> Sage did not tell the operating system where it should look for the
> executables that the Gap process needs.
>
> What can i do?
>

I haven't tried this but I would imagine you could run a bash script
which sets the environment variables like this:

sage: !/path/to/myscript

Any system command can be run like this:

sage: !date
Mon Sep  8 08:09:12 EDT 2008


> Yours
>      Simon
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to