Anonymous
Not applicable

Perhaps PyCharm sets a different working directory, meaning the file ends up in another place. Try providing a full path.