halgari/clojure-py — Issue #26: Integration with Python's __import__
Author: halgari
Created: 2012-02-20 14:21:55+00:00
State: open

I'd love to get clojure .clj files hooked into __import__ somehow. Basically from within python we should be able to do

import clojure
clojure.initImporter() ## creates some clojure setup hooks

import clojure.core as clj ## this loads a .clj file

This would allow people to freely mix Clojure and python code. Now, how we link into __import__...I'm not sure there. If we can somehow modify the python system to not require a call to a init() function to hook into __import__ that would be great.

In the end I'd like to see no difference between importing a .clj file or importing a.py file, from the perspective of a python user.