You can view Python's current working directory by calling os.getcwd().
Located, then open the file with just its name like you were doing. Call os.chdir(dir), dir being the folder where the file is.
You can view Python's current working directory by calling os.getcwd().
Located, then open the file with just its name like you were doing. Call os.chdir(dir), dir being the folder where the file is.