title: Incorrect path of executable file in Linux
body: <p>I need to run an <strong>exe</strong> file in Linux which has the Python code:</p>
  <pre><code>import os
  dirname = os.path.normpath(os.getcwd())
  print(dirname)
  </code></pre>
  <p>When I run the code  with the command <code>python code.py</code> , it runs fine</p>
  <p>and gives me the output : <code>\root\path\to\file</code>.</p>
  <p>But when I try to run the exe file with the command <code>wine64 code.exe</code> ,</p>
  <p>which has the same python code, It gives me the output : <code>Z:\root\path\to\file</code>.</p>
  <p>I tried to fix it by adding <code>dirname = dirname.replace('Z:', '')</code>,</p>
  <p>but it doesn't work, How to do this?</p>