I have the following file structure:
configs.py
__init__.py
(folder) /scritps
load.py
I need to import in load.py a series of config values from configs.py
In __init__.py
I have this
#!/usr/bin/python
# -*- coding: utf-8 -*
__all__= ["configs"]
in load.py I import the file with this:
from .. import configs
but I always get this error:
from .. import configs
ValueError: Attempted relative import in non-package
I've also tried import the file using:
from ..configs import *
but I get the same error.
What I'm doing wrong? I'm using python 2.6