-
Notifications
You must be signed in to change notification settings - Fork 106
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
Added worker to pythonpath #1215
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1215 +/- ##
===========================================
- Coverage 83.76% 32.00% -51.77%
===========================================
Files 34 34
Lines 1903 1903
Branches 366 366
===========================================
- Hits 1594 609 -985
- Misses 237 1293 +1056
+ Partials 72 1 -71
Flags with carried forward coverage won't be shown. Click here to find out more. |
func_worker_dir = str(Path(__file__).absolute().parent) | ||
env = os.environ | ||
|
||
# Setting up python path for all environments to prioritize | ||
# third-party user packages over worker packages in PYTHONPATH | ||
user_pkg_paths = determine_user_pkg_paths() | ||
joined_pkg_paths = os.pathsep.join(user_pkg_paths) | ||
env['PYTHONPATH'] = f'{joined_pkg_paths}:{func_worker_dir}' | ||
env['PYTHONPATH'] = f'{worker_path}:{joined_pkg_paths}:{func_worker_dir}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any way to add test for this? in the docker test as least?
This reverts commit a60ef25.
This reverts commit a60ef25.
* Revert "Added worker to pythonpath (#1215)" This reverts commit a60ef25. * Update Python SDK Version to 1.14.1b3 (#1232) * Update Python SDK Version to 1.14.1b3 * Update setup.py --------- Co-authored-by: AzureFunctionsPython <[email protected]> * Update Python Worker Version to 4.13.0 * Update Python Worker Version to 4.14.0 * Test fixes * Installing packages with -U * Install packages with updates * Adding python -m to pytest * Reverting change to codecov.yml --------- Co-authored-by: Gavin Aguiar <gavin@GavinPC> Co-authored-by: AzureFunctionsPython <[email protected]>
* Revert "Added worker to pythonpath (#1215)" This reverts commit a60ef25. * Update Python SDK Version to 1.14.1b3 (#1232) * Update Python SDK Version to 1.14.1b3 * Update setup.py --------- Co-authored-by: AzureFunctionsPython <[email protected]> * Update Python Worker Version to 4.13.0 * Update Python Worker Version to 4.14.0 * Importing azure functions in InitRequest by default * Updated tests --------- Co-authored-by: Gavin Aguiar <gavin@GavinPC> Co-authored-by: AzureFunctionsPython <[email protected]>
Added worker to pythonpath
Description
Fixes #
PR information
Quality of Code and Contribution Guidelines