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

Add a helper to figure out where a loaded package is installed #934

Closed
fingolfin opened this issue Sep 5, 2023 · 0 comments · Fixed by #958
Closed

Add a helper to figure out where a loaded package is installed #934

fingolfin opened this issue Sep 5, 2023 · 0 comments · Fixed by #958
Labels
kind: enhancement New feature or request

Comments

@fingolfin
Copy link
Member

Useful for e.g. debugging.
Basically something like

function locate_package(name::String)
  String(GAP.Globals.PackageInfo(GAP.Obj(name))[1].InstallationPath::GapObj)
end

though ideally also with a check that the package name is valid and the package loaded.

@fingolfin fingolfin added the kind: enhancement New feature or request label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant