| Conditions | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | """Gives useful information about the current virtualenv, files locations if |
||
| 20 | 1 | def get_dir(dirname: str): |
|
| 21 | """Detects if stakkr is a package or a clone and gives the right path for a directory""" |
||
| 22 | |||
| 23 | 1 | staticdir = os.path.dirname(os.path.realpath(__file__)) + '/' + dirname |
|
| 24 | 1 | if os.path.isdir(staticdir) is True: |
|
| 25 | 1 | return staticdir |
|
| 26 | |||
| 27 | return get_python_lib() + '/stakkr/' + dirname |
||
| 28 | |||
| 34 |