# Pastebin 8tuYfFEv import sys import os def generateConfig(): with open('config.ini', 'a+') as configFile: path = input('Input the path to the operatingsystems repo, if you don\'t know where this is, just hit "return" and I will try to find it.\n') os.write(configFile, path) generateConfig() --traceback-- $ python config.py Input the path to the operatingsystems repo, if you don't know where this is, just hit "return" and I will try tofind it. "/home/user" Traceback (most recent call last): File "config.py", line 24, in generateConfig() File "config.py", line 22, in generateConfig os.write(configFile, path) TypeError: an integer is required (got type _io.TextIOWrapper)