title: Cronjob not running on Python and Mac
body: <p>I am trying to test a simple cronjob and when I check if the cronjob has executed, it shows that it has but no file is being created as part of the task.</p>
  
  <p>I have the following script, testjob.py which needs to be executed: </p>
  
  <pre><code>#!/usr/bin/env python3
  import datetime
  
  with open('testcron.txt', 'a') as outfile:
      outfile.write('\n' + str(datetime.datetime.now() + 'myname'))
  </code></pre>
  
  <p>This is the cronjob: </p>
  
  <pre><code>#!/usr/bin/env python3
  from crontab import CronTab
  
  my_cron = CronTab(user='myname')
  job = my_cron.new(command = 'python /Users/myname/Desktop/customers/cronjob/testjob.py')
  #schedule job to run every 2 minutes
  job.minute.every(1)
  my_cron.write()
  
  </code></pre>
  
  <p>How can I troubleshoot this? </p>
  
  <p>link to image with my crontab running via crontab -e: <a href="https://i.stack.imgur.com/pj9Pt.png" rel="nofollow noreferrer">https://i.stack.imgur.com/pj9Pt.png</a></p>