summaryrefslogtreecommitdiff
path: root/tradey.py
diff options
context:
space:
mode:
Diffstat (limited to 'tradey.py')
-rw-r--r--tradey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tradey.py b/tradey.py
index f439e2d..8ec6c6b 100644
--- a/tradey.py
+++ b/tradey.py
@@ -98,7 +98,7 @@ class ItemTree:
self.tree.write("data/sale.xml")
def saveData(commitmessage = "commit"):
- cwd = os.getcwd()
+ # This assumes the current working directory is the tradey directory.
os.chdir("data")
call(["git", "commit","-a", '-m "' + commitmessage + '"'])
os.chdir("..")