How to use the scandir.__version__ function in scandir

To help you get started, we’ve selected a few scandir examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github benhoyt / scandir / View on Github external
"""Run "python install" to install scandir."""

# TODO: making this a separate for now so it doesn't conflict with
# the pure-Python one

from distutils.core import setup, Extension

import scandir

    author='Ben Hoyt',
    license='New BSD License',
    description='scandir, a better directory iterator that exposes all file info OS provides',
    long_description="scandir is a generator version of os.listdir() that returns an iterator over "
                     "files in a directory, and also exposes the extra information most OSes provide "
                     "while iterating files in a directory. Read more at the GitHub project page.",
    ext_modules=[Extension('_scandir', ['_scandir.c'])],
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',