INNER CODE UNIT · Python
get_assets_path
BortonWrightonLabs/DRAM · bin/adjectives.py:26
def get_assets_path(local_path):
"""
Locate the package data or non python files
:param local_path:
:returns:
"""
abs_snake_path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "assets", local_path
)
return abs_snake_path
# def list_adjectives(ctx, param, value):
# if not value or ctx.resilient_parsing:
# return
# rules = RuleParser(get_assets_path('traits_rules.tsv'), verbose=False)
# print("In the current rules file, these adjectives are available:")