pan></span><span class="c1"># Setup a file handler to write all information</span>
<span class="c1"># Are we running from within PyCharm or starting from command line at the root directory?</span>
<span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="s2">&quot;{0}\log&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">