Skip to content

Commit

Permalink
fix config saving
Browse files Browse the repository at this point in the history
  • Loading branch information
johnraz committed Oct 24, 2011
1 parent 2f26db4 commit ad1210b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sword.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def init_database(self, args):

if not self.config.has_option(site_section,'db_password') or not self.config.get(site_section,'db_password'):
self.config.set(site_section,'db_password',db_password)
with open('self.config.ini', 'w') as self.configfile:
with open('config.ini', 'w') as self.configfile:
self.config.write(self.configfile)

else:
Expand Down

0 comments on commit ad1210b

Please sign in to comment.