title: RuntimeError: No auth token found. Authentication Flow needed o365 python
body: <p>I'm using a Linux machine to run a python script within the Linux terminal.
  If I open the terminal inside the directory that houses my python script then use <code>python3 availableHoursReporting.py</code> command the script runs without any issues.</p>
  <p>However, if I open a terminal session outside of the directory that houses my python script then I get
  <code>RuntimeError: No auth token found. Authentication Flow needed</code></p>
  <p>The directory structure is as follows on my Linux machine:</p>
  <p><code>/home/ubuntu/python_scripts/Available-Hours-Reporting-/</code></p>
  <p>The 'auth_token' is stored within the <code>Available-Hours-Reporting</code> folder</p>
  <p>Here is the relevant code:</p>
  <pre><code>import o365
  from o365 import Account
  
  credentials = ('xxxxxxxxx',)
  
  account = Account(credentials, auth_flow_type = 'public')
  account.connection.get_session(load_token = True)
  </code></pre>
  <p>Traceback:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/ubuntu/python_scripts/Available-Hours-Reporting-/availableHoursReporting.py&quot;, line 27, in &lt;module&gt;
      account.connection.get_session(load_token = True)
    File &quot;/home/ubuntu/.local/lib/python3.8/site-packages/O365/connection.py&quot;, line 563, in get_session
      raise RuntimeError('No auth token found. Authentication Flow needed')
  RuntimeError: No auth token found. Authentication Flow needed
  </code></pre>
  <p>I'm new to Linux so I'm not sure If I'm totally misunderstanding the folder structures or if I'm using the terminal correctly to execute the .py script.</p>