# Items in submodules must be accessed explicitly including the full package name. import os print os.path.abspath(".")