Skip to content

Instantly share code, notes, and snippets.

@lambdaofgod
Created April 5, 2023 12:15
Show Gist options
  • Save lambdaofgod/54d9bae2515978a800fd1f24e6269ac2 to your computer and use it in GitHub Desktop.
Save lambdaofgod/54d9bae2515978a800fd1f24e6269ac2 to your computer and use it in GitHub Desktop.
Renaming Python relative imports
from <project_name>.d import function
# 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