title: Concatenate path and filename
body: <p>I have to build the full path together in python. I tried this:</p>
  
  <pre><code>filename= "myfile.odt"
  
  subprocess.call(['C:\Program Files (x86)\LibreOffice 5\program\soffice.exe',
                      '--headless',
                      '--convert-to',
                      'pdf', '--outdir',
                      r'C:\Users\A\Desktop\Repo\',
                      r'C:\Users\A\Desktop\Repo\'+filename])
  </code></pre>
  
  <p>But I get this error</p>
  
  <blockquote>
    <p>SyntaxError: EOL while scanning string literal.</p>
  </blockquote>