-
Notifications
You must be signed in to change notification settings - Fork 16
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
Read serviceconfig path from __file__ or exe location and update README. #355
Read serviceconfig path from __file__ or exe location and update README. #355
Conversation
…env, and the requirement to include .serviceconfig file. Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Moving to draft. My suggestion to include the |
…bute exists. Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Reminder - run 'poetry run pytest' locally. The state we're in right now before we add a self-hosted test runner is that there are a number of tests that are skipped on the PR checks. |
Tests passed. |
What does this Pull Request accomplish?
Updating how we are loading serviceconfig and other files. If we are running as an exe, we will look next to the exe, otherwise we will look next to
__file__
Why should this Pull Request be merged?
People building exe's have run into issues referencing their serviceconfig and UI files. The recommendation for UI files was to include it in the exe using
--add-path
. I was going to recommend this for serviceconfig files as well, but realized this would effectively dual source the serviceconfig as the DiscoveryService expects a copy on disk.What testing has been done?
Tested running example as both a script and as an exe.