0

假设我有一个 Python 文件,我想将其导入并在其他任何地方使用;如何编写 Python 代码以sys.path永久插入此模块的路径?

4

1 回答 1

-1

You could set your PYTHONPATH environment variable. This could be done by setting it in the /etc/profile file if you are on Linux.

于 2014-04-12T21:52:22.830 回答