Initial set of tools for editing/running projects

This commit is contained in:
yagigreg committed 2025-01-18 21:25:27 -06:00
commit e239215895
7 files changed
+126

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import os
def find_nearest(path, test):
path = os.path.abspath(path)
while True:
parent_path = os.path.dirname(path)
for entry in os.listdir(path):
if test(entry):
return path
if parent_path == path:
return None
path = parent_path