Here are the examples of the python api bokeh.io.util._shares_exec_prefix taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : test_util.py
with MIT License
from rthorst
with MIT License
from rthorst
def test__shares_exec_prefix():
import sys
old_ex = sys.exec_prefix
try:
sys.exec_prefix = "/foo/bar"
assert biu._shares_exec_prefix("/foo/bar") == True
sys.exec_prefix = "/baz/bar"
assert biu._shares_exec_prefix("/foo/bar") == False
sys.exec_prefix = None
assert biu._shares_exec_prefix("/foo/bar") == False
finally:
sys.exec_prefix = old_ex
#-----------------------------------------------------------------------------
# Code
#-----------------------------------------------------------------------------