title: How to fix forward slash issue in path on windows in python?
body: <p>I have developed an application in python and pyside. I have developed it on linux machine. Now I want to deploy it on windows machine. Here problem is path. In linux forward slash(/) used as separator but windows uses backward slash(\) as separator.</p>
  
  <p>So, on windows all paths not work. There are several paths in application(for stylesheet, images, log etc.)</p>
  
  <p>Its difficult to change all paths as most of paths are hard code like:</p>
  
  <pre><code> rootPath()+'/static/images/add.png' #rootPath return os.path...
  </code></pre>
  
  <p>Example:</p>
  
  <pre><code> colorPickerBtnStyle = 'background:url(' + rootPath() + '/static/images/color_icon.png);background-repeat: no-repeat;background-position:center center;'
  </code></pre>
  
  <p>Is there any work around for this problem.</p>