mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 04:18:52 -06:00
refactor: site code reads the repo root from core
This commit is contained in:
1 parent
d50dfc36e2
commit
ab0265408c
13 files changed
+31
-23
No files matched your search
@@ -43,8 +43,9 @@ sys.path.insert(0, str(Path(__file__).resolve().parent))
|
||||
|
||||
import siteinputs
|
||||
import sitemarkup as markup
|
||||
from core.paths import REPO_ROOT
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
ROOT = REPO_ROOT
|
||||
|
||||
PLACEHOLDER = re.compile(r"(?m)^([ \t]*)<!--\s*image:\s*([A-Za-z0-9_-]+)\s*-->[ \t]*$")
|
||||
PLACEHOLDER_ANYWHERE = re.compile(r"<!--\s*image:\s*([A-Za-z0-9_-]+)\s*-->")
|
||||
|
||||
Reference in new issue
Block a user