Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def save_as_json(schedule_dictionary):
- working_directory = get_work_dir()
- file_template = '{}/app/json/{}.json'
- for room in schedule_dictionary:
- with open(file_template.format(working_directory, room), 'w') as fout:
- json.dump(schedule_dictionary[room], fout, ensure_ascii=False, indent=4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement