Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to set Gap.gap_root before initialization #8

Open
embray opened this issue Jan 26, 2021 · 0 comments
Open

Make it possible to set Gap.gap_root before initialization #8

embray opened this issue Jan 26, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@embray
Copy link
Owner

embray commented Jan 26, 2021

Currently the only way to change initialization options like gap_root as well as others is to create a new Gap instance like Gap(gap_root=...), and same for other options.

However, it should be possible to assign to the .gap_root property, as well as others such as .workspace on the default Gap instance, as long as the GAP interpreter hasn't been initialized yet. E.g.,

>>> from gappy import gap
>>> gap.gap_root = '/path/to/gap/root'
>>> gap.eval('1 + 1')  # gets initialized here

This might be a simpler alternative to #5, and do away with exposing the possibility of creating new Gap instances altogether (at least, until and unless it is possible to have multiple GAP interpreters in a single process).

@embray embray added the enhancement New feature or request label Jan 26, 2021
@embray embray added this to the v0.1.0 milestone Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant