Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Oct 1, 2023
1 parent 6e4886c commit 180e579
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/fake_bpy_module/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,21 +1228,17 @@ def make_module_dirs(base_path: str, structure: 'ModuleStructure'):
def make_dir(path, structure_: 'ModuleStructure',
module_level: int):
for item in structure_.children():
print(f"@@@@ {path}/{item.name}")
if len(item.children()) == 0:
print(3)
if module_level == 0:
dir_path = path + "/" + item.name
pathlib.Path(dir_path).mkdir(
parents=True, exist_ok=True)
self._create_py_typed_file(dir_path)
print(1)
elif len(item.children()) >= 1:
dir_path = path + "/" + item.name
pathlib.Path(dir_path).mkdir(
parents=True, exist_ok=True)
self._create_py_typed_file(dir_path)
print(2)
if dir_path == base_path:
continue
make_dir(dir_path, item, module_level+1)
Expand Down

0 comments on commit 180e579

Please sign in to comment.