Browse Source

Allow importing "lsup_rdf.<mod name>"; update TODO.

Stefano Cossu 3 years ago
parent
commit
72495eaf1a
2 changed files with 9 additions and 4 deletions
  1. 8 3
      TODO.md
  2. 1 1
      cpython/lsup_rdf/__init__.py

+ 8 - 3
TODO.md

@@ -6,13 +6,18 @@
 
 - *D* LMDB back end
 - *D* Hash table back end
-- *D* Python bindings
 - *D* Namespace manager
-- *W* N3 serialization / deserialization
+- *D* N3 serialization / deserialization
+- *W* Python bindings
+    - *D* Basic module framework
+    - *D* term, triple, graph modules
+    - *D* Codec integration
+    - *W* Graph remove and lookup ops
+    - *P* Namespace module
+    - *P* Tests
 - *P* Environment
 - *P* Turtle serialization / deserialization
 - *P* Better error handling
-- *P* Python tests
 
 
 ## Non-critical for MVP

+ 1 - 1
cpython/lsup_rdf/__init__.py

@@ -19,7 +19,7 @@ def _load_module(mod_name, path):
     """
     spec = importlib.util.spec_from_file_location(mod_name, path)
     module = importlib.util.module_from_spec(spec)
-    sys.modules[mod_name] = module
+    sys.modules['lsup_rdf.' + mod_name] = module
     spec.loader.exec_module(module)
 
     return module