mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
start of a file to interact with git for getting xlations
This commit is contained in:
parent
d463ea3f30
commit
a7c4730eb5
1 changed files with 14 additions and 0 deletions
14
xwords4/android/scripts/mygit.py
Normal file
14
xwords4/android/scripts/mygit.py
Normal 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
|
Loading…
Reference in a new issue