Mar-03-2023, 01:25 PM
(This post was last modified: Mar-03-2023, 01:25 PM by Gribouillis.)
(Mar-03-2023, 11:12 AM)Bock Wrote: Unfortunately i get the error message: "no module named 'constant' "According to your post, the module is named 'constants' and not 'constant'. Could this be the error?
You could try a relative import in function.py
from .constants import my_constNote that 'relative' import means relative to the python packages hierarchy, not the file system's directories tree.