diff --git a/cobra.py b/cobra.py index f979ad88..418868f7 100755 --- a/cobra.py +++ b/cobra.py @@ -8,15 +8,20 @@ Implements cobra entry :author: Feei - :homepage: https://github.com/WhaleShark-Team/cobra + :homepage: https://github.com/FeeiCN/cobra :license: MIT, see LICENSE for more details. :copyright: Copyright (c) 2018 Feei. All rights reserved """ import re import sys - -from cobra import main +import os if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) + try: + os.system('git pull') + except: + pass + finally: + from cobra import main + sys.exit(main())