Skip to content

Commit

Permalink
merging Story's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gelstudios committed Aug 19, 2014
2 parents 454e8c7 + 87fe8f3 commit 9aab65e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions gitfiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ def save(output, filename):
f.close()

def main():
print TITLE
print "Enter github url"
print (TITLE)
print ("Enter github url")
ghe = raw_input("Enter nothing for https://github.com/ to be used: ")
print 'Enter your github username:'
print ('Enter your github username:')
username = raw_input(">")
if ghe is None or ghe == "":
git_base = "https://github.com/"
Expand All @@ -277,10 +277,10 @@ def main():
git_base = ghe
m = multiplier(max_commits(cal))

print 'Enter name of the repo to be used by gitfiti:'
print ('Enter name of the repo to be used by gitfiti:')
repo = raw_input(">")

print 'Enter number of weeks to offset the image (from the left):'
print ('Enter number of weeks to offset the image (from the left):')
offset = raw_input(">")
if offset == None:
offset = 0
Expand All @@ -302,12 +302,12 @@ def main():
else:
match = 1

print 'enter file(s) to load images from (blank if not applicable)'
print ('enter file(s) to load images from (blank if not applicable)')
img_names = raw_input(">").split(' ')
images = dict(IMAGES, **load_images(img_names))

print 'enter the image name to gitfiti'
print 'images: ' + ", ".join(images.keys())
print ('enter the image name to gitfiti')
print ('images: ' + ", ".join(images.keys()))
image = raw_input(">")
if image == None:
image = IMAGES['kitty']
Expand All @@ -325,8 +325,9 @@ def main():
m*match,git_url=git_url)

save(output, 'gitfiti.sh')
print 'gitfiti.sh saved.'
print 'Create a new(!) repo at: {0}new and run it.'.format(git_base)
print ('gitfiti.sh saved.')
print ('Create a new(!) repo at: {0}new and run it.' , format(git_base))
pause

if __name__ == '__main__':
main()

0 comments on commit 9aab65e

Please sign in to comment.