Visual Servoing Platform
version 3.7.0
Toggle main menu visibility
Loading...
Searching...
No Matches
__init__.py
1
35
36
import
sys
37
import
os
38
# import os
39
# sys.path.append(os.path.dirname(__file__))
40
# print(sys.path)
41
42
43
try
:
44
from
._visp
import
*
45
from
._visp
import
__dict__
as
cpp_extension_dict
46
except
ImportError:
47
import
platform
48
if
platform.system() ==
"Windows"
:
# On windows import can fail because DLLs are not found in the default search paths
49
from
.windows_dll_manager
import
get_dll_paths, build_directory_manager
50
# Use the context to clean up the PATH/dll directories after the import (no namespace pollution)
51
with
build_directory_manager()
as
dll_dir_manager:
52
for
p
in
get_dll_paths():
53
dll_dir_manager.add_dll_directory(p)
54
from
._visp
import
*
55
from
._visp
import
__dict__
as
cpp_extension_dict
56
else
:
57
raise
ImportError(
'Could not import ViSP python bindings'
)
58
59
60
# Fake module names
61
for
k
in
cpp_extension_dict:
62
from
types
import
ModuleType
63
if
isinstance(_visp.__dict__[k], ModuleType):
64
sys.modules[f
'{__name__}.{k}'
] = _visp.__dict__[k]
65
66
67
import
visp.python
visp.python
Definition
__init__.py:1
modules
python
bindings
visp
__init__.py
Generated by
1.17.0