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

PyPANDA: directory overrides for PANDA constructor #1352

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

MarkMankins
Copy link
Collaborator

PANDA and PyPANDA make some assumptions about where files are installed that don't currently align with how things are done in my environment. I updated both to allow for more fine-grained configuration to be specified. I can rework if there is a better way. Is there anything else I need to do - since this logic is tightly coupled between PyPANDA and PANDA I wasn't sure if anything else needed tweaked (version numbers?)

Allow caller to specify location of libpanda shared object, pc-bios files, and directory where plugins are installed. If these arguments are left as their default values PyPANDA will use the previous algorithm for finding these files.

Allow caller to specify location of libpanda shared object, pc-bios files,
and directory where plugins are installed.  If these arguments are left as
their default values PyPANDA will use the previous algorithm for finding
these files.

a773
@AndrewFasano
Copy link
Member

These changes look good to me but I'd love for either @lacraig2 or @jamcleod to double check that the PANDA_LIB environment variable changes wont' break anything with panda-rs.

@MarkMankins
Copy link
Collaborator Author

The output from pypanda's test generic_tests.py doesn't look like it's what is expected - I don't think that originated with this PR.

@AndrewFasano
Copy link
Member

Oh wow yeah, that looks very wrong. Thanks for catching it. Since the test is still marked as passing despite it going off the rails, I'm going to assume that has been broken for a long time and not related to this PR. I'll open an issue.

@MarkMankins
Copy link
Collaborator Author

If there is a chance that PANDA_LIB might cause a problem I could change that to something else. PYPANDA_PANDA_LIB perhaps?

@AndrewFasano
Copy link
Member

Nah, I think PANDA_LIB is fine - nobody complained so I'll merge this now. Thanks!

@AndrewFasano AndrewFasano merged commit 9f27158 into panda-re:dev Sep 25, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants