omaciel/robottelo — pull request #86 by gkhachik (2013-11-25 10:06:06+00:00)
Title: fixing the way of getting ***real*** root path (from everywhere in the code...)

Just use: conf.getRootPath()

this fix makes ALL parties happy: robotello runner; run-tests; pydev nose run inside Eclipse, whatever else:

as it was wrong relying on os.path.curdir (try it inside: lib/cli/base.py and guess what you'll get back ;))

I did with preparing this piece:
```
def getRootPath(self):
recentPath = os.path.curdir
while (not os.path.isfile(recentPath + "/" + ROOT_README) and \
recentPath != "/"):
recentPath = os.path.abspath(recentPath + "/../")
if recentPath == "/":
print "Where is your %s ???" % ROOT_README
sys.exit(-1)
return os.path.abspath(os.path.abspath(recentPath))
```