Created
April 5, 2023 12:15
-
-
Save lambdaofgod/54d9bae2515978a800fd1f24e6269ac2 to your computer and use it in GitHub Desktop.
Renaming Python relative imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from <project_name>.d import function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# let's say old.py is in <project_dir>/d | |
from .another_file import function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment