Why does this Python code give rise to Error 2 [Errno 2] No such file or directory: ?
import csv
from datetime import date
today=date.today()
datum=today.strftime('%Y-%m-%d')
nyMedlemFile = open('CiviCRM_Indata/utdata/'+datum+'/nyaMedlemmar.csv', 'w')
nyMedlem = csv.writer(nyMedlemFile)
I am writing so the file should not be expected to exist. I am puzzled!
Claes