[Bf-extensions-cvs] [05f8a211] master: BlenderKit: basic file search function
Vilem Duha
noreply at git.blender.org
Thu Jun 13 00:23:13 CEST 2019
Commit: 05f8a2118ff12b966f34acd08d1bc3a9c0b7c96a
Author: Vilem Duha
Date: Mon Jun 10 22:08:22 2019 +0200
Branches: master
https://developer.blender.org/rBA05f8a2118ff12b966f34acd08d1bc3a9c0b7c96a
BlenderKit: basic file search function
===================================================================
M blenderkit/paths.py
===================================================================
diff --git a/blenderkit/paths.py b/blenderkit/paths.py
index df765b3f..692987b4 100644
--- a/blenderkit/paths.py
+++ b/blenderkit/paths.py
@@ -49,6 +49,13 @@ def get_bkit_url():
url = BLENDERKIT_MAIN
return url
+def find_in_local(text=''):
+ fs = []
+ for p, d, f in os.walk('.'):
+ for file in f:
+ if text in file:
+ fs.append(file)
+ return fs
def get_api_url():
return get_bkit_url() + BLENDERKIT_API
More information about the Bf-extensions-cvs
mailing list