Python numpy.__path__() Examples

The following are 2 code examples for showing how to use numpy.__path__(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module numpy , or try the search function .

Example 1
Project: artisan   Author: artisan-roaster-scope   File: setup-win.py    License: GNU General Public License v3.0 5 votes vote down vote up
def numpy_dll_paths_fix():
    paths = set()
    np_path = numpy.__path__[0]
    for dirpath, _, filenames in os.walk(np_path):
        for item in filenames:
            if item.endswith('.dll'):
                paths.add(dirpath)
    if paths:
        sys.path.append(*list(paths)) 
Example 2
Project: ConTroll_Remote_Access_Trojan   Author: Lithium876   File: setup.py    License: Apache License 2.0 5 votes vote down vote up
def numpy_dll_paths_fix():
    paths = set()
    np_path = numpy.__path__[0]
    for dirpath, _, filenames in os.walk(np_path):
        for item in filenames:
            if item.endswith('.dll'):
                paths.add(dirpath)

    sys.path.append(*list(paths))