From bec098c2ecd026d00e9b8ca1c28fbd607f639167 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 24 Feb 2026 20:53:03 -0500 Subject: [PATCH] init.sage: remove hard-coded repository paths You'll just have to specify where the repository lives, as with all other rogue python libraries. --- init.sage | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/init.sage b/init.sage index 6d52b85..dbec83c 100644 --- 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' -- 2.51.0