Must stop coding when tired!
1 parent c478338 commit ddc415c176d1479dc5b989a6684cd33bb3e0256e
@Jeff Rebeiro Jeff Rebeiro authored on 6 Feb 2013
Showing 1 changed file
View
8
common.py
logging.error('Unable to determine IP address. Please set manually!')
config.set('AUTOBACKUP', 'default_interface', '127.0.0.1')
if not config.has_option('AUTOBACKUP', 'server_name'):
config.set('AUTOBACKUP', 'server_name', '[PC]AutoBackup')
if not config.has_option('AUTOBACKUP', 'server_name'):
if not config.has_option('AUTOBACKUP', 'uuid'):
config.set('AUTOBACKUP', 'uuid', uuid.uuid4())
with open(CONFIG_FILE, 'wb') as config_file:
config.write(config_file)
 
with open(CONFIG_FILE, 'wb') as config_file:
config.write(config_file)
 
return config