Helpsypoo / primerpython

code that makes videos for this: youtube.com/c/primerlearning
1.34k stars 164 forks source link

Avoid hardcoding import paths #3

Open cclauss opened 5 years ago

cclauss commented 5 years ago

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.

Helpsypoo commented 5 years ago

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