Oct-08-2019, 03:29 PM
(This post was last modified: Oct-08-2019, 03:31 PM by Axel_Erfurt.)
Create a folder ("Resources") in the same folder where the script is
and then change your script (for example)
and then change your script (for example)
import os import sys mydir = os.path.join(os.path.dirname(sys.argv[0]), "Resources") excelfile = os.path.join(mydir, "myexcelfile.csv") if os.path.isfile(excelfile ): print("exists") ### to check file exists # your code ...