#21: command line option parsing
-------------------------------+--------------------------------------------
Reporter: was | Owner: jdemeyer
Type: enhancement | Status: needs_work
Priority: critical | Milestone: sage-6.0
Component: interfaces | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: #9958 | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by kini):
Replying to [comment:46 rohana]:
> Replying to [comment:45 kini]:
> > Right, we might have a very thin bash wrapper that loads `sage-env`
(which will be a bash script) before the main Python script. Or, since
`sage-env` ideally should just set up environment variables and do nothing
else (right?), we could turn it into a config file that was read
independently by `sage-sh` and by `sage`. This would also allow us to rely
less on environment variables for random things seemingly unrelated to the
shell.
>
> Are you saying that a configuration file should store the current
environment? And that anytime it is changed (such as if the root directory
of sage is moved) that this should be updated?
It should store the current startup environment. It would change if the
root directory of Sage is moved, for example, yes. But if a user decided
to change an environment variable in a Sage session with `os.environ` that
wouldn't become reflected in the file, of course.
> > Why does part of the startup need to be bash, other than because of
`sage-env`?
>
> For one of two reasons:
>
> * python may not be in `PATH` because python is not currently a
dependency
> * even if python is in `PATH`, sage may not work with the default
python
Oh, right, of course. So then yes, `sage` should be bootstrapped in the
way you described [comment:43 above].
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/21#comment:47>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.