mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
15 lines
329 B
Python
15 lines
329 B
Python
|
#!/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
|