/usr/lib/python3/dist-packages/bimdp/test/__init__.py is in python3-mdp 3.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | import os
import mdp
# wrap the mdp.test function and set the module path to bimdp path
infodict = mdp.NodeMetaclass._function_infodict(mdp.test)
idx = infodict["argnames"].index('mod_loc')
defaults = list(infodict['defaults'])
defaults[idx] = os.path.dirname(__file__)
infodict['defaults'] = tuple(defaults)
test = mdp.NodeMetaclass._wrap_function(mdp.test, infodict)
|