Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.

Improve the way of importing the VERSION constant - #719

Closed
xsamueljr wants to merge 1 commit into
Shopify:mainfrom
xsamueljr:main
Closed

xsamueljr wants to merge 1 commit into
Shopify:mainfrom
xsamueljr:main

Conversation

@xsamueljr

Copy link
Copy Markdown

When having a file with one single line declaring a constant (the shopify.version module), loading it by using exec() is a pretty weird method. You should just import the constant instead. This improves code readability and follows best practices for importing modules

Checklist

  • I have updated the CHANGELOG (if applicable)
  • I have followed the Shopify Python guide

@matteodepalo

Copy link
Copy Markdown
Contributor

Thank you @xsamueljr ! Could you please sign the CLA?

@Suleimanlatrsh

Copy link
Copy Markdown
Contributor

Thanks for contributing! This package is deprecated and we're archiving this repo, so we're closing all open issues and PRs. Please use shopify-app-python instead, and open new issues there. More context: Rethinking support for PHP/Python packages

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants