Mercurial > repos > rliterman > csp2
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pybedtools/paths.py Tue Mar 18 16:23:26 2025 -0400 @@ -0,0 +1,28 @@ +""" +Module for handling paths. + +This is kept separate from helpers module in order to avoid circular imports in +setting the bedtools path. +""" + +import pybedtools +from pybedtools import bedtool +from . import settings +from importlib import reload + + +def _set_bedtools_path(path=""): + old_path = settings._bedtools_path + settings._bedtools_path = path + if old_path != path: + reload(bedtool) + reload(pybedtools) + return True + + +def _get_bedtools_path(): + return settings._bedtools_path + + +def _set_R_path(path=""): + settings._R_path = path