showObj.location = os.path.normpath(location)

should be enough.