title: Robot Framework - using relative paths to run tests from different directory variations
body: <p>I am running into an issue with my Robot Framework test suites.  I have a simple test structure like this:</p>
  
  <pre><code>robotframework
  |_foo
   |_tests folder
   |_pages folder
   |_firefoxTestProfile folder
   |_...
  </code></pre>
  
  <p>I have set a bare bones Firefox Profile path to run my tests and have set the variable like so:</p>
  
  <pre><code>*** Variables ***
  ${FF_PROFILE}    foo\firefoxTestProfile
  *** Keywords ***
  Open browser window
      Open Browser    ${test_url}    ${browser}   
  ... ff_profile_dir=${FF_PROFILE}
  </code></pre>
  
  <p>When I run my tests from the top directory, it runs fine:  </p>
  
  <pre><code>C:/robotframework$  pybot foo/tests/test.txt
  </code></pre>
  
  <p>However, if I try to run it from the foo directory, like this:</p>
  
  <pre><code>C:/robotframework/foo$  pybot tests/test.txt
  </code></pre>
  
  <p>The tests throw fails, stating </p>
  
  <pre><code>"The system cannot find the path specified: foo/firefoxTestProfile/*.*"
  </code></pre>
  
  <p>I tried various things, such as putting the path as </p>
  
  <pre><code>../foo/firefoxTestProfile
  /foo/firefoxTestProfile
  firefoxTestProfile
  </code></pre>
  
  <p>as well as moving the firefoxTestProfile folder to a different path within the file structure and updating to that new path, but none of this worked and displayed the same error message as before. </p>
  
  <p>It's also important because I want a default firefox profile to run with the tests, and these tests are passed between different people for running them locally on their machines.  Any help would be greatly appreciated.</p>