Ejemplo n.º 1
0
#!/usr/bin/env python

if __name__ == '__main__':
    import sys
    import os
    import gitautodeploy
    sys.stderr.write(
        "\033[1;33m[WARNING]\033[0;33m GitAutoDeploy.py is deprecated. Please use \033[1;33m'python gitautodeploy%s'\033[0;33m instead.\033[0m\n"
        % (' ' + ' '.join(sys.argv[1:])).strip())
    gitautodeploy.main()
#!/usr/bin/env python
from gitautodeploy import main

if __name__ == '__main__':
    main()
#!/usr/bin/env python

if __name__ == '__main__':
    import sys
    import os
    import gitautodeploy
    sys.stderr.write("\033[1;33m[WARNING]\033[0;33m GitAutoDeploy.py is deprecated. Please use \033[1;33m'python gitautodeploy%s'\033[0;33m instead.\033[0m\n" % (' ' + ' '.join(sys.argv[1:])).strip())
    gitautodeploy.main()
Ejemplo n.º 4
0
#!/usr/bin/env python

if __name__ == '__main__':

    if __package__ != 'gitautodeploy':
        import sys
        print("Critical - GAD must be started as a python module, for example using python -m gitautodeploy")
        sys.exit()

    from gitautodeploy import main
    import sys
    import os
    sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
    main()

else:
    from gitautodeploy import main