title: Parent path Python Maya
body: <p>I have a problem. I have a GUI in maya generated by a script in python.
  The GUI, when launched opens an image.To load the image I used the following line of code:</p>
  
  <pre><code>cmds.image( image='/home/s4915717/myName/artefacts/Images/UIheader02.png' )
  </code></pre>
  
  <p>As you can understand, if I move my script into another computer, I should manually change the path to correctly load the image. 
  Is there a way to prevent this and let the program find to allocation of the image by itself?</p>
  
  <p>I also tried to use the following method:</p>
  
  <pre><code>import os
  .
  .
  .
  path = os.path.abspath('myName/artefacts/Images/UIheader02.png')
  cmds.image( image=path )
  </code></pre>
  
  <p>it works on my pc, but if I move on another one it doesn't work(yes I moved the whole folder with the image inside myName/artefacts...</p>