Skip to content

Commit

Permalink
Don't clobber customizations when an update is made to config.py
Browse files Browse the repository at this point in the history
upstream.
  • Loading branch information
unn committed Jul 22, 2013
1 parent dbaaa09 commit 2910232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
powerline-shell.py
*.py[co]
config.py
File renamed without changes.
5 changes: 5 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ def load_source(srcfile):
return ''

if __name__ == "__main__":
try:
with open('config.py'): pass
except IOError:
print 'Please copy config.py.dist to config.py and retry.'
exit(1)
source = load_source(TEMPLATE_FILE)
source += load_source(os.path.join(THEMES_DIR, config.THEME + '.py'))
for segment in config.SEGMENTS:
Expand Down

0 comments on commit 2910232

Please sign in to comment.