mirror of
https://github.com/andreili/SBC_builder.git
synced 2025-08-23 11:04:04 +02:00
16 lines
334 B
Python
16 lines
334 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
ROOT_DIR=Path(os.path.abspath(__file__)).parent.parent
|
|
|
|
def marker_check(name):
|
|
fn = f"{ROOT_DIR}/build/.{name}_marker"
|
|
marker = Path(fn)
|
|
if (marker.is_file()):
|
|
return True
|
|
return False
|
|
|
|
def marker_set(name):
|
|
fn = f"{ROOT_DIR}/build/.{name}_marker"
|
|
Path(fn).touch()
|