mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-09 17:39:59 +00:00
Upload "Google Blockly" prototyping tools
This commit is contained in:
28
modules_forge/google_blockly/loader.py
Normal file
28
modules_forge/google_blockly/loader.py
Normal file
@@ -0,0 +1,28 @@
|
||||
import os
|
||||
import importlib
|
||||
|
||||
|
||||
def load_all_google_blockly():
|
||||
current_dir = os.path.dirname(__file__)
|
||||
package = __package__
|
||||
|
||||
for filename in os.listdir(current_dir):
|
||||
if filename == os.path.basename(__file__):
|
||||
continue
|
||||
|
||||
if not filename.endswith(".py"):
|
||||
continue
|
||||
|
||||
if filename.endswith("_s.py"):
|
||||
continue
|
||||
|
||||
if filename.endswith("_u.py"):
|
||||
continue
|
||||
|
||||
if filename.endswith("_m.py"):
|
||||
continue
|
||||
|
||||
module_name = f"{package}.{filename[:-3]}"
|
||||
importlib.import_module(module_name)
|
||||
|
||||
return
|
||||
Reference in New Issue
Block a user