mrkn / pycall.rb

Calling Python functions from the Ruby language
MIT License
1.05k stars 72 forks source link

import_module from other folder than lib? #152

Closed Moritz030 closed 2 years ago

Moritz030 commented 3 years ago

hello, is it possible to import a python module from somewhere else than the python lib folder (for example /usr/lib/python3.8/)

mrkn commented 2 years ago

@Moritz030 Yes, you can load all the modules that can be found in directories that are contained by sys.path. This is the same manner as Python.