Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Avoid hardcoding import paths #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cclauss
Copy link

@cclauss cclauss commented May 3, 2019

from .tools import helpers should do just fine.

Also, declare fr_prev before its first use on line 52. This is not strictly necessary with the current code but it is good defensive programming if the code changes in the future.

__from .tools import helpers__ should do just fine.

Also declare __fr_prev__ before its first use on line 52.  This is not strictly necessary but it is good defensive programming.
@Helpsypoo
Copy link
Owner

When running this, I get
SystemError: Parent module '' not loaded, cannot perform relative import

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants