concatenate path - platform independent - "/" , "\"
<p>In python I have variables <code>base_dir</code> and <code>filename</code>. I would like to concatenate them to obtain <code>fullpath</code>. But under windows I should use <code>\</code> and for POSIX <code>/</code> .</p>

<pre><code>fullpath = "%s/%s" % ( base_dir, filename ) # for Linux
</code></pre>

<p>How to make it platform independent?</p>

<p><strong>Dup</strong>: <a href="http://stackoverflow.com/questions/6036129/platform-independent-file-paths">Platform-independent file paths?</a></p>
