WillTools 2026-09-09 -- clean snapshot of the development repo for review
ci / test (push) Successful in 6m14s
ci / test (push) Successful in 6m14s
History-free snapshot of the private development repository at 77a82eb. Code, docs and the public catalogue only: no plant or job knowledge layers, no client, job or producer names (tools/scrub.py clean against the widened term list; a second word-level grep clean). The intro deck is left out because its slide images cannot be checked for job drawings.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Put beamcalc/src first on sys.path. Run from the repo root, the bare
|
||||
`beamcalc/` directory (which holds fixtures/, tools/, tests/ and src/) is
|
||||
what `import beamcalc` finds -- an implicit namespace package with no
|
||||
modules in it -- and every test here fails to import. `pip install -e
|
||||
beamcalc` would fix it too, but the suite must run on a fresh checkout
|
||||
with nothing installed, same as the rest of this repo."""
|
||||
import os
|
||||
import sys
|
||||
|
||||
_SRC = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'src')
|
||||
if _SRC not in sys.path:
|
||||
sys.path.insert(0, _SRC)
|
||||
_mod = sys.modules.get('beamcalc')
|
||||
if _mod is not None and getattr(_mod, '__file__', None) is None:
|
||||
del sys.modules['beamcalc'] # the namespace-package placeholder
|
||||
Reference in New Issue
Block a user