diff --git a/sx/sxc/pages/helpers.py b/sx/sxc/pages/helpers.py index ba8a1cd..2bd80fe 100644 --- a/sx/sxc/pages/helpers.py +++ b/sx/sxc/pages/helpers.py @@ -42,10 +42,10 @@ def _special_forms_data() -> dict: from shared.sx.parser import parse_all, serialize from shared.sx.types import Symbol, Keyword - spec_path = os.path.join( - os.path.dirname(os.path.abspath(__file__)), - "..", "..", "..", "shared", "sx", "ref", "special-forms.sx", - ) + ref_dir = os.path.join(os.path.dirname(__file__), "..", "..", "shared", "sx", "ref") + if not os.path.isdir(ref_dir): + ref_dir = "/app/shared/sx/ref" + spec_path = os.path.join(ref_dir, "special-forms.sx") with open(spec_path) as f: exprs = parse_all(f.read())