Newer
Older
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
if __name__ == '__main__':
os.chdir(os.path.dirname(os.path.abspath(os.path.expanduser(__file__))))
sys.stdout.write('Updating envsetup: ')
sys.stdout.flush()
subprocess.check_call('git pull', shell=True)
subprocess.call('find . -name *.pyc -type f -delete', shell=True)
subprocess.call('find . -name __pycache__ -type d -delete', shell=True)
subprocess.call('find . -type d -empty -delete', shell=True)