T
T
Twelfth Doctor2018-02-25 20:34:33
Python
Twelfth Doctor, 2018-02-25 20:34:33

How to make a python module available?

Hello. Compiled a module for python in *.so format. If you run python in the directory where the assembled module is located, then everything is successfully imported. If you run python outside of this directory, you won't be able to import anything.

>>> from container import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'container'

How can I make this module public?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question