How can I test my python module without installing it

后端 未结 3 596
半阙折子戏
半阙折子戏 2021-02-13 00:51

I\'m in the process of redesigning/refactoring my Python quantum chemistry package (pyquante). One of the things I don\'t like about the existing release is that I have to insta

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-13 01:28

    Altering sys.path much in production environment may be unwise. Altering it for testing is usually OK.

    If you don't want to tinker with the variable from sys, use an environment variable named PYTHONPATH, it's a clean and documented way.

提交回复
热议问题