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

Wrong driver being loaded by the instrument server #45

Open
jacobfeder opened this issue Jul 15, 2021 · 0 comments
Open

Wrong driver being loaded by the instrument server #45

jacobfeder opened this issue Jul 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jacobfeder
Copy link
Member

jacobfeder commented Jul 15, 2021

In misc.py, the function load_class_from_file() adds the parent folder of drivers specified by the user to the sys.path. If the user adds a driver with the name xxx.py, but there is another file named xxx.py in the same folder as a different driver (whose parent directory was previously added to sys.path), nspyre will load this second file instead.

@jacobfeder jacobfeder added the bug Something isn't working label Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant