diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-08-09 22:55:44 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-08-09 22:55:44 -0400 |
commit | 2b7e391fcd51d3468133f628f2e013574cf16536 (patch) | |
tree | 9aeda2cb0999ecab0531eedb762a7d4f2a233204 /markdown.py | |
parent | b941beb7973025d359f3e7839a5b99ea7f62c534 (diff) | |
download | markdown-2b7e391fcd51d3468133f628f2e013574cf16536.tar.gz markdown-2b7e391fcd51d3468133f628f2e013574cf16536.tar.bz2 markdown-2b7e391fcd51d3468133f628f2e013574cf16536.zip |
reorganized the extensions into a seperate dir. Much cleaner looking file system IMO.
Diffstat (limited to 'markdown.py')
-rwxr-xr-x | markdown.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/markdown.py b/markdown.py index 707b89c..38923ac 100755 --- a/markdown.py +++ b/markdown.py @@ -2135,11 +2135,14 @@ def load_extension(ext_name, configs = []): module = __import__(extension_module_name) except ImportError: - message(WARN, + try: + module = __import__('.'.join(['mdx', extension_module_name]), {}, {}, ['mdx']) + except: + message(WARN, "Couldn't load extension '%s' from \"%s\" - continuing without." % (ext_name, extension_module_name) ) - # Return a dummy (do nothing) Extension as silent failure - return Extension(configs={}) + # Return a dummy (do nothing) Extension as silent failure + return Extension(configs={}) return module.makeExtension(configs.items()) |