Fix relative paths for the library imports
* Use ndn_cmmap_translators.<module_name>
* Update README to reflect updated dependecies and installation instructions
Change-Id: I7b44f10b9034ee21a5f55b2b41a5ea44dbd1cff9
diff --git a/lib/ndn_cmmap_translators/__init__.py b/lib/ndn_cmmap_translators/__init__.py
index e69de29..a5c4e6b 100644
--- a/lib/ndn_cmmap_translators/__init__.py
+++ b/lib/ndn_cmmap_translators/__init__.py
@@ -0,0 +1,3 @@
+'''define the modules here so that they can be imported'''
+__all__ = ["atmos2ndn_parser", "atmos2ndn_translators"]
+
diff --git a/lib/ndn_cmmap_translators/atmos2ndn_translators/translate.py b/lib/ndn_cmmap_translators/atmos2ndn_translators/translate.py
index 10fd9b6..2eb4a26 100644
--- a/lib/ndn_cmmap_translators/atmos2ndn_translators/translate.py
+++ b/lib/ndn_cmmap_translators/atmos2ndn_translators/translate.py
@@ -28,8 +28,8 @@
import netCDF4
import glob
import os
-from atmos2ndn_parser import cmd_arg_parser
-from atmos2ndn_parser import conf_file_parser
+from ndn_cmmap_translators.atmos2ndn_parser import cmd_arg_parser
+from ndn_cmmap_translators.atmos2ndn_parser import conf_file_parser
from . import cmip5_translator
def translate(parsedConfig, dataFilepath):
diff --git a/lib/ndn_cmmap_translators/atmos_translator.py b/lib/ndn_cmmap_translators/atmos_translator.py
index 280d0d2..a12b420 100644
--- a/lib/ndn_cmmap_translators/atmos_translator.py
+++ b/lib/ndn_cmmap_translators/atmos_translator.py
@@ -22,8 +22,8 @@
'''Translates a netcdf filename to a NDN name'''
-from atmos2ndn_parser import conf_file_parser, cmd_arg_parser
-from atmos2ndn_translators import translate
+from ndn_cmmap_translators.atmos2ndn_parser import conf_file_parser, cmd_arg_parser
+from ndn_cmmap_translators.atmos2ndn_translators import translate
def argsForTranslation(dataFilepath, configPath):
'''this module does the actual translation calls'''