ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 09 Apr 2020 22:27:55 +0200How can I change the location of DOT_SAGE?https://ask.sagemath.org/question/50640/how-can-i-change-the-location-of-dot_sage/The documentation for [environment variables used by sage](https://doc.sagemath.org/html/en/reference/repl/environ.html) it is mentioned that the default location of `DOT_SAGE` is `$HOME/.sage/` but that this location can be changed.
How can this location be changed?Thu, 09 Apr 2020 06:35:27 +0200https://ask.sagemath.org/question/50640/how-can-i-change-the-location-of-dot_sage/Answer by eric_g for <p>The documentation for <a href="https://doc.sagemath.org/html/en/reference/repl/environ.html">environment variables used by sage</a> it is mentioned that the default location of <code>DOT_SAGE</code> is <code>$HOME/.sage/</code> but that this location can be changed.</p>
<p>How can this location be changed?</p>
https://ask.sagemath.org/question/50640/how-can-i-change-the-location-of-dot_sage/?answer=50642#post-id-50642Before running SageMath, define the environment variable `DOT_SAGE` by typing the following command in a terminal:
export DOT_SAGE=/full_path/.sage
where `/full_path` must be substituted by the actual path to the directory where the file `.sage` is located.Thu, 09 Apr 2020 09:16:20 +0200https://ask.sagemath.org/question/50640/how-can-i-change-the-location-of-dot_sage/?answer=50642#post-id-50642Comment by done_with_fish for <p>Before running SageMath, define the environment variable <code>DOT_SAGE</code> by typing the following command in a terminal:</p>
<pre><code>export DOT_SAGE=/full_path/.sage
</code></pre>
<p>where <code>/full_path</code> must be substituted by the actual path to the directory where the file <code>.sage</code> is located.</p>
https://ask.sagemath.org/question/50640/how-can-i-change-the-location-of-dot_sage/?comment=50647#post-id-50647Ahh, so sage reads environment variables set by my shell?Thu, 09 Apr 2020 22:27:55 +0200https://ask.sagemath.org/question/50640/how-can-i-change-the-location-of-dot_sage/?comment=50647#post-id-50647