config.read(configfile)
apikey = config.get('openweathermap', 'apikey')
cityid = config.get('openweathermap', 'cityid')
+ csvfile = config.get("openweathermap", 'csvfilename')
weather_raw = getweather(apikey, cityid)
if debug:
# write to db
# write to csv
- write_csv(config.get("openweathermap", 'csvfilename'), weather)
+ write_csv(os.path.expanduser(csvfile), weather)
if __name__ == '__main__':