2017 m. liepos 18 d., antradienis

How to change pycharm test directory

This solves unitest import errors. Whem pycharm can't find project folder directory or cant import project files.

1. Go to.


2. Add.
PYTHONPATH = /path/to/project/dir


3.Don't forget to save settings:


  • Also might help right clicking on directory, then selecting "Mark directory as" -> Source root