How can I test my python module without installing it

后端 未结 3 2207
無奈伤痛
無奈伤痛 2021-02-13 00:56

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:12

    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.

提交回复
热议问题