title: AttributeError: 'PosixPath' object has no attribute 'path'
body: <p>I have a python script that I'm trying to execute but i'm not sure how it's meant to be executed. I don't program in Python so i'm unfamiliar with the language. <a href="https://pastebin.com/gndDBhqD" rel="noreferrer">Here is the link to the script i'm trying to use.</a>  Also, a <a href="https://pastebin.com/XTTpefTk" rel="noreferrer">link the configuration it's using if you wish to see it.</a> All it seems to do for what's relevant here, however, is set my path which I know is correct since other scripts (not linked here) work as expected with the configuration in that file. </p>
  
  <p>Having a look at the script, I believe that the script is meant to be ran with the command line arguments: view, new, init. Thus, I ran the following in my terminal</p>
  
  <pre><code>$ lectures.py new
  </code></pre>
  
  <p>But I get the following traceback</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/bin/lectures.py", line 156, in &lt;module&gt;
      lectures = Lectures(Path.cwd())
    File "/usr/bin/lectures.py", line 60, in __init__
      self.root = course.path
  AttributeError: 'PosixPath' object has no attribute 'path'
  </code></pre>
  
  <p>Furthermore, my python version</p>
  
  <pre><code>$ python --version
  Python 3.8.1
  </code></pre>
  
  <p>EDIT:
  <a href="https://castel.dev/post/lecture-notes-3/" rel="noreferrer">I wanted to add the reference as well for what I am trying to follow</a> </p>