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

[CR-1161728]: emconfig.json path issue if host code is in python. #7687

Merged
merged 9 commits into from
Sep 7, 2023

Conversation

sgundime-xilinx
Copy link
Collaborator

Fix: emconfig.json file path is wrongly deduced with getSelfPath API especially if host code is python script. The current fix ensures the proper current path is chosen if the exe name contains /usr/*/python in it.

Risk: very low

Tests: Canary Run. Results are Clean.

Reviewer: venkatp

@gbuildx
Copy link
Collaborator

gbuildx commented Sep 5, 2023

Build failed :(

@sgundime-xilinx sgundime-xilinx changed the title emconfig.json path issue if host code is in python. [CR-1161728]: emconfig.json path issue if host code is in python. Sep 5, 2023
Copy link
Collaborator

@chvamshi-xilinx chvamshi-xilinx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sgundime-xilinx ,
It is better to check the emconfig.json file in the executable path first. If we dont find it there, check in current working directory. We shouldn't be adding special checks for python etc.

@dayeh-xilinx
Copy link

retest this please.

@gbuildx
Copy link
Collaborator

gbuildx commented Sep 5, 2023

Build failed :(

@gbuildx
Copy link
Collaborator

gbuildx commented Sep 6, 2023

Build Passed!

@chvamshi-xilinx chvamshi-xilinx merged commit 83fa507 into Xilinx:master Sep 7, 2023
2 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.

5 participants