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

Rename __root_path__ to __development_base_path__ #9136

Merged
merged 2 commits into from
Apr 7, 2023
Merged

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Apr 7, 2023

To clarify that this path is not available in production installs (i.e. non-editable) to avoid future problems like #9132 — this has bit me before as well.

To clarify that this path is not available in production installs (i.e. non-editable)
@zanieb zanieb requested a review from a team as a code owner April 7, 2023 00:34
@zanieb zanieb added the enhancement An improvement of an existing feature label Apr 7, 2023
@netlify
Copy link

netlify bot commented Apr 7, 2023

Deploy Preview for prefect-docs-preview ready!

Name Link
🔨 Latest commit 654fdd8
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs-preview/deploys/643023b81f585700086ad467
😎 Deploy Preview https://deploy-preview-9136--prefect-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@zanieb zanieb requested a review from cicdw April 7, 2023 00:35
@@ -33,7 +34,7 @@ async def ls():
List available recipes.
"""

recipe_paths = Path(__file__).parent / ".." / "projects" / "recipes"
recipe_paths = prefect.__module_path__ / "projects" / "recipes"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have strong feelings about this change but it's consistent with the purpose of having the module path in the init.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense to me!

Copy link
Member

@cicdw cicdw left a comment

Choose a reason for hiding this comment

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

Nice

@zanieb zanieb merged commit 308fe24 into main Apr 7, 2023
@zanieb zanieb deleted the rename-root-path branch April 7, 2023 15:26
asmundo pushed a commit to asmundo/prefect that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants