diff --git a/main.py b/main.py new file mode 100644 index 0000000..87046e6 --- /dev/null +++ b/main.py @@ -0,0 +1,24 @@ +import os + + +def print_directory_structure(startpath, max_depth=None, exclude_dirs=None): + # Default list of directories to exclude + if exclude_dirs is None: + exclude_dirs = ['node_modules', '.git', '.mypy_cache'] + + for root, dirs, files in os.walk(startpath): + # Filter out the directories in the exclude list + dirs[:] = [d for d in dirs if d not in exclude_dirs] + + level = root.replace(startpath, '').count(os.sep) + if max_depth is not None and level > max_depth: + continue + indent = '│ ' * level + print(f'{indent}├── {os.path.basename(root)}/') + + for f in files: + print(f'{indent}│ ├── {f}') + +# Usage +# You can extend the exclude list by passing additional directories +print_directory_structure('.', max_depth=2, exclude_dirs=['node_modules', '.git', '.mypy_cache', '__pycache__']) diff --git a/src/model/model.ts b/src/model/Model2.ts similarity index 100% rename from src/model/model.ts rename to src/model/Model2.ts diff --git a/src/model/modelL.ts b/src/model/modelL.ts index 4981f9d..6680d36 100644 --- a/src/model/modelL.ts +++ b/src/model/modelL.ts @@ -1,4 +1,4 @@ -import { Model } from "./Model"; +import { Model } from "./Model2"; export const model: Model = { vertexData: { diff --git a/src/model/modelPlane.ts b/src/model/modelPlane.ts index 715d3cc..c0a2eb6 100644 --- a/src/model/modelPlane.ts +++ b/src/model/modelPlane.ts @@ -1,5 +1,5 @@ import f from "../assets/tex.png" -import { Model } from "./Model" +import { Model } from "./Model2" export const model: Model = { vertexData: { diff --git a/src/webgl.ts b/src/webgl.ts index 863f325..562f373 100644 --- a/src/webgl.ts +++ b/src/webgl.ts @@ -1,5 +1,5 @@ import { m4 } from "./m4" -import { Model } from "./model/Model" +import { Model } from "./model/Model2" import { model } from "./model/modelPlane" export function createWebglRenderer(canvas: HTMLCanvasElement) { diff --git a/tsconfig.app.json b/tsconfig.app.json index 690eb7b..1783457 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -20,7 +20,13 @@ "strict": true, "noUnusedLocals": false, "noUnusedParameters": false, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + "baseUrl": ".", + "paths": { + "*": [ + "src/*" + ] + } }, "include": [ "src"