From: Michael Orlitzky Date: Wed, 25 Feb 2026 01:53:03 +0000 (-0500) Subject: init.sage: remove hard-coded repository paths X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=bec098c2ecd026d00e9b8ca1c28fbd607f639167;p=sage.d.git init.sage: remove hard-coded repository paths You'll just have to specify where the repository lives, as with all other rogue python libraries. --- 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'