Python numpy.__path__() Examples
The following are 2
code examples of numpy.__path__().
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 also want to check out all available functions/classes of the module
numpy
, or try the search function
.

Example #1
Source File: setup-win.py From artisan with GNU General Public License v3.0 | 5 votes |
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
Source File: setup.py From ConTroll_Remote_Access_Trojan with Apache License 2.0 | 5 votes |
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))