Im studying about GAE, Im trying to build a app with 2 module: default module and count module. Count module increaces value of Count object in datastore by 1 every min. default module access Count object and show its current value.
I setup default module as index.py in root directory.
Count object in Global.py in /global/
Count-module as count.py in /count/
I can access Count object form index.py through:
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "global"))
from Global import Count
But I cannot access Count object from count.py in count-module:
sys.path.append(os.path.join(os.path.dirname(__file__),
"..",
"global")
)
from Global import Count
--> ImportError: No module named Global Someone help me?