diff --git a/xwords4/android/scripts/mygit.py b/xwords4/android/scripts/mygit.py new file mode 100644 index 000000000..c38d8fb82 --- /dev/null +++ b/xwords4/android/scripts/mygit.py @@ -0,0 +1,14 @@ +#!/usr/bin/python + +import os, subprocess + +class GitRepo: + + def __init__(self, path): + self.path = path + + def status(self): + os.chdir(self.path) + process = subprocess.Popen(['git', 'status'], shell=False, stdout=subprocess.PIPE) + result = process.communicate()[0] + if result: print result