File size: 293 Bytes
34059a0
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import inspect
import argostranslate.package as pkg

print('module:', pkg)
print('has install_from_path:', hasattr(pkg, 'install_from_path'))
if hasattr(pkg, 'install_from_path'):
    print('source:')
    print(inspect.getsource(pkg.install_from_path))
else:
    print('no install_from_path')