| Conditions | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import contextlib |
||
| 14 | @contextlib.contextmanager |
||
| 15 | def work_in(dirname=None): |
||
| 16 | """ |
||
| 17 | Context manager version of os.chdir. When exited, returns to the working |
||
| 18 | directory prior to entering. |
||
| 19 | """ |
||
| 20 | curdir = os.getcwd() |
||
| 21 | try: |
||
| 22 | if dirname is not None: |
||
| 23 | os.chdir(dirname) |
||
| 24 | yield |
||
| 25 | finally: |
||
| 26 | os.chdir(curdir) |
||
| 27 | |||
| 89 | main.add_command(status) |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.