As you are already using ``os``, why not use it to build that path? For example, ``default=os.path.abspath('config/alembic.ini-dist'),`` (see http://docs.python.org/2/library/os.path.html#os.path.abspath )