Skip to content
Snippets Groups Projects
Commit 05f8a211 authored by Vilem Duha's avatar Vilem Duha
Browse files

BlenderKit: basic file search function

parent 07c8304e
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,13 @@ def get_bkit_url(): ...@@ -49,6 +49,13 @@ def get_bkit_url():
url = BLENDERKIT_MAIN url = BLENDERKIT_MAIN
return url 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(): def get_api_url():
return get_bkit_url() + BLENDERKIT_API return get_bkit_url() + BLENDERKIT_API
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment