Closed elijahc closed 5 years ago
GitMate.io thinks possibly related issues are https://github.com/EtienneCmb/visbrain/issues/12 (Brain import error), and https://github.com/EtienneCmb/visbrain/issues/24 (topo code issue).
Hi @elijahc ,
Thanks for reporting this issue. Yes, inspect
is probably going to be better. Can you make the PR?
Turns out pkg_resources is a better module for this.
see this SO post: https://stackoverflow.com/questions/779495/python-access-data-in-package-subdirectory
I'll submit a PR shortly
I use pyenv to manage my python virtual environments.
I'm having trouble executing your example for loading an edf file
Here's the stacktrace I get:
I think this is due to the way that you find where the visbrain module has been installed in get_data_url_path()
currently you're doing this by walking back the path from where visbrain.io.path is installed but I think using
inspect
might get you the information more directly and also work better with other python virtual environment managers?Thoughts?
I can submit a PR for this if that helps