Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Read the path to SAGE_SPKG_INST from the environment if possible; oth…
Browse files Browse the repository at this point in the history
…erwise use the hard-coded default path
  • Loading branch information
embray committed May 21, 2018
1 parent c167505 commit df2af7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/sage_bootstrap/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def uninstall(spkg_name, sage_local):
SAGE_LOCAL if it is currently installed.
"""

# TODO: I don't like that this is hard-coded here; there should be better
# centralization for this without having to load sage-env or sage.env;
# https://trac.sagemath.org/ticket/22652 would help here
# The default path to this directory; however its value should be read
# from the environment if possible
spkg_inst = pth.join(sage_local, 'var', 'lib', 'sage', 'installed')
spkg_inst = os.environ.get('SAGE_SPKG_INST', spkg_inst)

# Find all stamp files for the package; there should be only one, but if
# there is somehow more than one we'll work with the most recent and delete
Expand Down

0 comments on commit df2af7d

Please sign in to comment.