1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #784 resolved

make mapfile fails

Ilia Choly
created an issue

in {{{pygments/formatters/_mapping.py}}} there is an {{{import}}} from {{{pygments.util}}} on line 16. However, this path is not accessible until after the {{{sys.path.insert}}} call on line 56. Also, all of the generated formatter imports have the same problem. If I set {{{FORMATTERS = {}}}} then I get an error coming from {{{init.py}}} on line 21 about {{{fcls}}} not being defined.

The only way I can get it to work is by sticking

{{{ import sys import os sys.path.insert(0, os.path.join(os.path.dirname(file), '..', '..')) }}}

at the very top of {{{_mapping.py}}}

Comments (5)

  1. Log in to comment