Running Python Script fails on file_Path

Running Python Script fails on file_Path

Hi,

trying to use my first Python script for ServiceDeskPlus I keep running into an error that drives me crazy.

The script has been downloaded here (Script to send reminder emails to requester when there is no response from them for more than a specified time period (manageengine.com), Python + requests + xlrd are installed,  send_reminder_mail.py and functions.py are placed in the custom_scripts directory and configuration.json has been edited and placed there as well ( I altered the send_reminder_mail.py as well but keep getting the same error with teh original file).

However I keep getting the error:
Traceback (most resecnt call last): File "C:\Program Files\ManageENgine\ServiceDEsk\integration\custom_scripts\send_reminder_mail.py", line 13, in <module> workorder_list = read_file(str(sys.argv[1])) File "C:\Program Files\ManageEngine\ServiceDesk\integration\custom_scripts\functions.py", line 31, in read_file with open(file_Path) as data_file: FileNotFound: [Errno 2] No such file or directory: 'C:\\Program'

To me this sound like the functions.py has some trouble resolving a path containg spaces ("Program Files") but I hardly doubt I am the only one running into that error if this is the case. Can anyone give me a hint what I am doing wrong or which part of preparation I forgot?

Best regards

Johannes

                  New to ADSelfService Plus?