The path may broke if we move the folder. But we can always have the assumption that the files are in the parent folder. So may be you can use something like this:
os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))