3 # Author: Paul D. Eden <paul@benchline.org>
4 # Distributed under the terms of the Gnu public license version 2
5 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
7 # Simple script to keep track of my mindmaps
8 # stores to a local git repo and syncs with Amazon S3
14 HOME
= os
.environ
["HOME"]
17 subprocess
.check_call(cmd
, shell
=True)
20 ret
= subprocess
.call(cmd
, shell
=True)
24 os
.chdir("%s/Desktop/mm" % HOME
)
27 def push_mindmaps(sync_w_s3
=True):
28 os
.chdir("%s/Desktop/mm" % HOME
)
31 if __name__
== "__main__":
33 if sys
.argv
[1] == "pull":