#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys # Add project root directory (enable symlink, and trunk execution). PROJECT_ROOT_DIRECTORY = os.path.abspath( os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0])))) if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'dotfiles')) and PROJECT_ROOT_DIRECTORY not in sys.path): sys.path.insert(0, PROJECT_ROOT_DIRECTORY) os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY) import dotfiles.cli if __name__ == '__main__': dotfiles.cli.main()