mongodb-labs / edda

A log visualizer for MongoDB - This Repository is NOT a supported MongoDB product
232 stars 28 forks source link

Getting an error importing logl.modules #12

Closed kchodorow closed 12 years ago

kchodorow commented 12 years ago
>>> import logl.modules
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "logl/modules/__init__.py", line 6, in <module>
    dirList = os.listdir(os.path.abspath("modules"))
OSError: [Errno 2] No such file or directory: '/home/user/gitroot/logl/modules'
samantharitter commented 12 years ago

If you are in logl/logl, and you run "import modules" from a python shell there, it doesn't report any problems. I don't really know what it means that you can't "import logl.modules" from one directory higher, but I will work on understanding/fixing this

kchodorow commented 12 years ago

Generally people are going to be at the top-level directory (logl/), so it needs to look for "logl/modules", not just "modules".

samantharitter commented 12 years ago

This is working now, at least for our tests, which we're running from the top level directory