python relative imports in Blender
Has anyone done relative imports for scripts in blender (2.49b)?
I'm adding an import script to the file-->import group, which takes a file and passes it to my parser. The parser does some relative imports, but the import fails.

This is how the directory structure looks:

<pre>
scripts/
  bpydata/
  bpymodules/
  myCustomScripts/
     lib/
        __init__.py
        customLib.py
     plugin/
        __init__.py
        myParser.py
     __init__.py
     runner.py
  ...
  my_import_script.py
  ...
</pre>

Aside from the standard files and folders, I have placed my own folder with custom scripts.
The runner calls myParser, and myParser imports customLib using

<code>import .lib.customLib</code>

It works when I'm calling runner.py through command-line, but it doesn't work when I invoke it through blender, saying there is no such module called .lib.customLib

It probably has something to do with paths. Is there an alternative I could try instead of the dot? 
python relative imports in Blender
===

Has anyone done relative imports for scripts in blender (2.49b)?
I'm adding an import script to the file-->import group, which takes a file and passes it to my parser. The parser does some relative imports, but the import fails.

This is how the directory structure looks:

<pre>
scripts/
  bpydata/
  bpymodules/
  myCustomScripts/
     lib/
        __init__.py
        customLib.py
     plugin/
        __init__.py
        myParser.py
     __init__.py
     runner.py
  ...
  my_import_script.py
  ...
</pre>

Aside from the standard files and folders, I have placed my own folder with custom scripts.
The runner calls myParser, and myParser imports customLib using

<code>import .lib.customLib</code>

It works when I'm calling runner.py through command-line, but it doesn't work when I invoke it through blender, saying there is no such module called .lib.customLib

It probably has something to do with paths. Is there an alternative I could try instead of the dot? 