Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pybedtools/paths.py @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 68:5028fdace37b |
---|---|
1 """ | |
2 Module for handling paths. | |
3 | |
4 This is kept separate from helpers module in order to avoid circular imports in | |
5 setting the bedtools path. | |
6 """ | |
7 | |
8 import pybedtools | |
9 from pybedtools import bedtool | |
10 from . import settings | |
11 from importlib import reload | |
12 | |
13 | |
14 def _set_bedtools_path(path=""): | |
15 old_path = settings._bedtools_path | |
16 settings._bedtools_path = path | |
17 if old_path != path: | |
18 reload(bedtool) | |
19 reload(pybedtools) | |
20 return True | |
21 | |
22 | |
23 def _get_bedtools_path(): | |
24 return settings._bedtools_path | |
25 | |
26 | |
27 def _set_R_path(path=""): | |
28 settings._R_path = path |