Sha256: b403d2cc3c233e26d664857d28c7e7808c65d997bd53217ec5340a976f5f9384

Contents?: true

Size: 322 Bytes

Versions: 42

Compression:

Stored size: 322 Bytes

Contents

# coding: utf-8
"""
Support for Pygments tests
"""

import os


def location(mod_name):
    """
    Return the file and directory that the code for *mod_name* is in.
    """
    source = mod_name.endswith("pyc") and mod_name[:-1] or mod_name
    source = os.path.abspath(source)
    return source, os.path.dirname(source)

Version data entries

42 entries across 42 versions & 5 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/support.py
pygments.rb-0.6.3 vendor/pygments-main/tests/support.py
pygments.rb-0.6.2 vendor/pygments-main/tests/support.py
pygments.rb-0.6.1 vendor/pygments-main/tests/support.py
pygments.rb-0.6.0 vendor/pygments-main/tests/support.py
mortar-pygments.rb-0.5.7 vendor/pygments-main/tests/support.py
mortar-pygments.rb-0.5.6 vendor/pygments-main/tests/support.py
mortar-pygments.rb-0.5.5 vendor/pygments-main/tests/support.py
pygments.rb-jruby-0.5.4.2 vendor/pygments-main/tests/support.py
pygments.rb-jruby-0.5.4.1 vendor/pygments-main/tests/support.py
pygments.rb-jruby-0.5.4 vendor/pygments-main/tests/support.py
gitlab-pygments.rb-0.5.4 vendor/pygments-main/tests/support.py
pygments.rb-0.5.4 vendor/pygments-main/tests/support.py
pygments.rb-0.5.2 vendor/pygments-main/tests/support.py
pygments.rb-0.5.1 vendor/pygments-main/tests/support.py
pygments.rb-0.5.0 vendor/pygments-main/tests/support.py
gitlab-pygments.rb-0.3.2 vendor/pygments-main/tests/support.py
pygments.rb-0.4.2 vendor/pygments-main/tests/support.py
pygments.rb-0.4.1 vendor/pygments-main/tests/support.py
pygments.rb-0.3.7 vendor/pygments-main/tests/support.py