start of a file to interact with git for getting xlations

This commit is contained in:
Eric House 2014-04-29 06:53:02 -07:00
parent d463ea3f30
commit a7c4730eb5

View file

@ -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