how to manage sys.path globally in pycharm

后端 未结 3 1552
抹茶落季
抹茶落季 2021-02-14 03:54

I have a bunch of unittests that import stuff not from /python2.7/site-packages/ but from a completely different directory. So what I do is do some monkey-patching

3条回答
  •  一个人的身影
    2021-02-14 04:30

    There is now a better way to do it. You can Mark Directory as as Sources root. This option will appear in the bottom when you right click on any directory in Project.

提交回复
热议问题