]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
init.sage: remove hard-coded repository paths
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 25 Feb 2026 01:53:03 +0000 (20:53 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 25 Feb 2026 01:53:03 +0000 (20:53 -0500)
You'll just have to specify where the repository lives, as with all
other rogue python libraries.

init.sage

index 6d52b853ccf914811c72d9793ff6f06b55ca64d3..dbec83c592354ee4033f9bd34d0748bb542dccac 100644 (file)
--- a/init.sage
+++ b/init.sage
@@ -1,11 +1,11 @@
-import os
-import site
-
-# Add '~/src/sage.d' and '~/src/sage.d.git' to our path.
-site.addsitedir( os.path.expanduser('~/src/sage.d') )
-site.addsitedir( os.path.expanduser('~/src/sage.d.git') )
+# SageMath initialization
+#
+# Assumes that the repository is on your PYTHONPATH, and does only two
+# things:
+#
+#   1. Imports the public names from mjo.all.
+#   2. Disables the ipython GUI completion list.
+#
 
 from mjo.all import *
-
-# Tell ipython we don't want its stupid "GUI" completion list.
 %config TerminalInteractiveShell.display_completions = 'readlinelike'