--
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 sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/dd799185-11a1-47be-b2e2-c1636e74909e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Paul Zimmermann suggested using -nodotsage, which apparently creates a temporary .sage directory which I expect would be different for different runs. This is not ideal since currently the scripts I am running this way make use of a %runfile command in ~/.sage/initsage to load all the functions needed.
--
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 sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/47d12b47-1a03-4fd3-adbd-52ae32b93470%40googlegroups.com.
On Wed, 22 May 2019 at 10:27, slelievre <samuel....@gmail.com> wrote:Le mercredi 22 mai 2019 10:00:34 UTC+2, John Cremona a écrit :Paul Zimmermann suggested using -nodotsage, which apparently creates a temporary .sage directory which I expect would be different for different runs. This is not ideal since currently the scripts I am running this way make use of a %runfile command in ~/.sage/initsage to load all the functions needed.One can use a custom init.sage, see my answer to- Stack Overflow question 41922740: Start cli with init.sageThe trick is just to use the SAGE_STARTUP_FILE environment variable.Instead of just running$ sagerun$ SAGE_STARTUP_FILE=/path/to/custom/init.sage sageThanks Samuel, that sounds perfect. In fact, since my init.sage only contains the line%runfile /home/jec/ecdata/scripts/ecdb.pyit seems that I can doSAGE_STARTUP_FILE=%runfile /home/jec/ecdata/scripts/ecdb.py sage -nodotsage
SAGE_STARTUP_FILE=/home/jec/ecdata/scripts/ecdb.py sage -nodotsage
On Wed, 22 May 2019 at 11:17, John Cremona <john.c...@gmail.com> wrote:On Wed, 22 May 2019 at 10:27, slelievre <samuel....@gmail.com> wrote:Le mercredi 22 mai 2019 10:00:34 UTC+2, John Cremona a écrit :Paul Zimmermann suggested using -nodotsage, which apparently creates a temporary .sage directory which I expect would be different for different runs. This is not ideal since currently the scripts I am running this way make use of a %runfile command in ~/.sage/initsage to load all the functions needed.One can use a custom init.sage, see my answer to- Stack Overflow question 41922740: Start cli with init.sageThe trick is just to use the SAGE_STARTUP_FILE environment variable.Instead of just running$ sagerun$ SAGE_STARTUP_FILE=/path/to/custom/init.sage sageThanks Samuel, that sounds perfect. In fact, since my init.sage only contains the line%runfile /home/jec/ecdata/scripts/ecdb.pyit seems that I can doSAGE_STARTUP_FILE=%runfile /home/jec/ecdata/scripts/ecdb.py sage -nodotsageOf course I meantSAGE_STARTUP_FILE=/home/jec/ecdata/scripts/ecdb.py sage -nodotsage