title: Python Script got ERROR when switch from Windows to Linux
body: <p>I write a Python script on Windows and work pretty well, now I just installed "elementary Os" that is a Ubuntu based distro, but some how when I start the script it just crashed... I dont really now how to fixed it.</p>
  
  <p>I let u a part of the script making problem:</p>
  
  <pre><code>memos=open(str(os.getcwd())+'\\LOG\\tres.txt','w')
  menf='3)PRESION LATERAL DEL SUELO DE RELLENO\n Ka = '+str(round(Ka,2))+'\nP = '+str(round(P,2))+'\nY = '+str(round(Y,2))+'''
  \nHm = '''+str(round(Hm,2))+'\nPm = '+str(round(Pm,2))+'\nYm = '+str(round(Ym,2))
  memos.write(menf)
  memos.close()
  </code></pre>
  
  <p>So the deal should be...</p>
  
  <pre><code>memos=open(str(os.getcwd())+'\\LOG\\tres.txt','w')
  </code></pre>
  
  <p>Because show me an error...</p>
  
  <pre><code>UnicodeEncodeError: 'ascii' codec can't encode character '\xba' in position 199: ordinal not in range(128)
  </code></pre>
  
  <p>Now, when I change for...</p>
  
  <pre><code>memos=open(str(os.getcwd())+'/LOG/tres.txt','w')
  </code></pre>
  
  <p>It got me another error...</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: '/home/jojaror/Documentos/Scripts de Python/LOG/tres.txt'
  </code></pre>
  
  <p>I tryed to solve at my own, but i can't... so, if anyway could help me on this it would be helpful.</p>