tdfw 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tdfw-0.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MichaelKramerGuitar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tdfw-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: tdfw
3
+ Version: 0.1.1
4
+ Summary: TouchDesigner Framework CLI scaffold tool for opinionated State Driven Command and Control/Code Driven project architecture
5
+ Author-email: Michael Kramer <michael.kramer.guitar@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/MichaelKramerGuitar/tdfw
8
+ Project-URL: Repository, https://github.com/MichaelKramerGuitar/tdfw
9
+ Project-URL: Issues, https://github.com/MichaelKramerGuitar/tdfw/issues
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: click
14
+ Dynamic: license-file
15
+
16
+ ![Coverage](https://codecov.io/gh/MichaelKramerGuitar/tdfw/branch/main/graph/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
17
+
18
+
19
+ # tdfw
20
+ TouchDesigner Framework CLI scaffold tool with an opinionated slant towards State Driven/Code Driven project architecture.
21
+
22
+ ## About
23
+
24
+ Hi, I'm Michael. I play guitar and write code. I was introduced to TouchDesigner by my friend Andrew Zolty, who's also known as `BREAKFAST`. He's an incredible kinetic artist.
25
+
26
+ Getting started with TouchDesigner as a GUI never really happened for me. I started a few YouTube courses on it but didn't have the time to follow through and learn how to use the interface.
27
+
28
+ But the concept of a network of nodes and subnodes made sense to my programmer/software engineer brain. I thought "there must be a purely code driven way to architect these TouchDesinger apps". So I looked on YouTube and found [this](https://www.youtube.com/watch?v=nQT7EhYCVg0) video (read more about that in [BACKGROUND.md](./BACKGROUND.md)). I was thrilled and what has resulted is essentially this tool which abstracts out all the boilerplate he gives.
29
+
30
+ # How To Use
31
+
32
+ ```bash
33
+ # Install
34
+ uv pip install tdfw
35
+
36
+ # Confirm installation and check options
37
+ tdfw help
38
+
39
+ # Start a TouchDesigner App
40
+ tdfw start-app <MyFirstApp>
41
+
42
+ # Create a Python Extension stub (from your TouchDesigner Project Root i.e. the dir with the <MyFirstApp>.toe file)
43
+ tdfw create-ext <MyFirstExt>
44
+ ```
tdfw-0.1.1/README.md ADDED
@@ -0,0 +1,29 @@
1
+ ![Coverage](https://codecov.io/gh/MichaelKramerGuitar/tdfw/branch/main/graph/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
2
+
3
+
4
+ # tdfw
5
+ TouchDesigner Framework CLI scaffold tool with an opinionated slant towards State Driven/Code Driven project architecture.
6
+
7
+ ## About
8
+
9
+ Hi, I'm Michael. I play guitar and write code. I was introduced to TouchDesigner by my friend Andrew Zolty, who's also known as `BREAKFAST`. He's an incredible kinetic artist.
10
+
11
+ Getting started with TouchDesigner as a GUI never really happened for me. I started a few YouTube courses on it but didn't have the time to follow through and learn how to use the interface.
12
+
13
+ But the concept of a network of nodes and subnodes made sense to my programmer/software engineer brain. I thought "there must be a purely code driven way to architect these TouchDesinger apps". So I looked on YouTube and found [this](https://www.youtube.com/watch?v=nQT7EhYCVg0) video (read more about that in [BACKGROUND.md](./BACKGROUND.md)). I was thrilled and what has resulted is essentially this tool which abstracts out all the boilerplate he gives.
14
+
15
+ # How To Use
16
+
17
+ ```bash
18
+ # Install
19
+ uv pip install tdfw
20
+
21
+ # Confirm installation and check options
22
+ tdfw help
23
+
24
+ # Start a TouchDesigner App
25
+ tdfw start-app <MyFirstApp>
26
+
27
+ # Create a Python Extension stub (from your TouchDesigner Project Root i.e. the dir with the <MyFirstApp>.toe file)
28
+ tdfw create-ext <MyFirstExt>
29
+ ```
@@ -0,0 +1,41 @@
1
+ [project]
2
+ name = "tdfw"
3
+ version = "0.1.1"
4
+ description = "TouchDesigner Framework CLI scaffold tool for opinionated State Driven Command and Control/Code Driven project architecture"
5
+ authors = [{ name = "Michael Kramer", email = "michael.kramer.guitar@gmail.com" }]
6
+ readme = "README.md"
7
+ license = { text = "MIT" }
8
+ requires-python = ">=3.9"
9
+ dependencies = ["click"]
10
+
11
+ [dependency-groups]
12
+ dev = ["pytest", "pytest-cov", "twine"]
13
+
14
+ [project.urls]
15
+ Homepage = "https://github.com/MichaelKramerGuitar/tdfw"
16
+ Repository = "https://github.com/MichaelKramerGuitar/tdfw"
17
+ Issues = "https://github.com/MichaelKramerGuitar/tdfw/issues"
18
+
19
+ [project.scripts]
20
+ tdfw = "tdfw.cli:cli"
21
+
22
+ [tool.setuptools]
23
+ packages = ["tdfw"]
24
+
25
+ [tool.uv]
26
+ default-groups = ["dev"]
27
+
28
+ [tool.pytest.ini_options]
29
+ addopts = "--cov=tdfw --cov-report=xml --cov-report=term-missing"
30
+
31
+ [tool.coverage.run]
32
+ branch = true
33
+ omit = [
34
+ "*/__init__.py",
35
+ "tests/*"
36
+ ]
37
+
38
+ [tool.coverage.report]
39
+ show_missing = true
40
+ skip_covered = true
41
+
tdfw-0.1.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
File without changes
tdfw-0.1.1/tdfw/cli.py ADDED
@@ -0,0 +1,201 @@
1
+ import os
2
+ import click
3
+ import subprocess
4
+ import shutil
5
+
6
+ def check_tool(tool_name):
7
+ """Return True if tool is available in PATH"""
8
+ return shutil.which(tool_name) is not None
9
+
10
+ def ensure_dir(path):
11
+ if not os.path.exists(path):
12
+ os.makedirs(path)
13
+
14
+ @click.group()
15
+ def cli():
16
+ """TouchDesigner Framework CLI (tdfw)"""
17
+ pass
18
+
19
+ # ----------------------------
20
+ # App scaffolding
21
+ # ----------------------------
22
+ @click.command()
23
+ @click.argument("app_name")
24
+ @click.option("--td-path", default=None,
25
+ help="Override path to TouchDesigner executable")
26
+ def start_app(app_name, td_path):
27
+ """Scaffold a new TouchDesigner app"""
28
+ base = os.path.abspath(app_name)
29
+ ensure_dir(base)
30
+
31
+ for folder in ["BAT", "DAT", "LOG"]:
32
+ ensure_dir(os.path.join(base, folder))
33
+
34
+ with open(os.path.join(base, "README.md"), "w") as f:
35
+ f.write(f"# {app_name}\nGenerated by tdfw\n")
36
+
37
+ with open(os.path.join(base, ".gitignore"), "w") as f:
38
+ f.write("*.toe\n*.log\n")
39
+
40
+ # Default TD path
41
+ default_td_path = "C:\\Program Files\\Derivative\\TouchDesigner\\bin\\TouchDesigner.exe"
42
+ td_exec = td_path if td_path else default_td_path
43
+
44
+ # Windows .bat
45
+ bat_path = os.path.join(base, "BAT", f"{os.path.basename(app_name)}.bat")
46
+ with open(bat_path, "w") as f:
47
+ f.write(f"""@echo off
48
+ set NODE=DEV
49
+ start "" "{td_exec}" "{app_name}.toe"
50
+ """)
51
+
52
+ # Mac/Linux .bash
53
+ bash_path = os.path.join(base, "BAT", f"{os.path.basename(app_name)}.bash")
54
+ with open(bash_path, "w") as f:
55
+ f.write(f"""#!/bin/bash
56
+ export NODE=DEV
57
+ open -a "{td_exec}" "{app_name}.toe"
58
+ """)
59
+
60
+ for ext in ["StartupExt", "SettingsExt", "StateExt"]:
61
+ ext_path = os.path.join(base, "DAT", f"{ext}.py")
62
+ with open(ext_path, "w") as f:
63
+ f.write(f"class {ext}:\n def __init__(self, ownerComp):\n self.ownerComp = ownerComp\n")
64
+
65
+ click.echo(f"✅ Created TouchDesigner app scaffold at {base}")
66
+
67
+ # ----------------------------
68
+ # Extension stub
69
+ # ----------------------------
70
+ @click.command()
71
+ @click.argument("ext_name")
72
+ def create_ext(ext_name):
73
+ """Create a new extension stub"""
74
+ path = os.path.join("DAT", f"{ext_name}.py")
75
+ if not os.path.exists("DAT"):
76
+ click.echo("❌ No DAT directory found. Run start-app first.")
77
+ return
78
+
79
+ with open(path, "w") as f:
80
+ f.write(f"""class {ext_name}:
81
+ \"\"\"{ext_name} description\"\"\"
82
+ def __init__(self, ownerComp):
83
+ self.ownerComp = ownerComp
84
+ """)
85
+ click.echo(f"✅ Created extension stub: {path}")
86
+
87
+ # ----------------------------
88
+ # Environment management
89
+ # ----------------------------
90
+ @click.command()
91
+ @click.argument("env_name")
92
+ def init_env(env_name):
93
+ """Initialize a Python virtual environment using uv (fallback to pip)"""
94
+ if check_tool("uv"):
95
+ click.echo(f"📦 Creating uv environment: {env_name}")
96
+ subprocess.run(["uv", "venv", env_name], check=True)
97
+ click.echo("✅ uv environment created")
98
+ elif check_tool("python"):
99
+ click.echo("⚠️ uv not found, falling back to Python venv + pip")
100
+ subprocess.run(["python", "-m", "venv", env_name], check=True)
101
+ subprocess.run([f"{env_name}/Scripts/pip", "install", "--upgrade", "pip"], check=True)
102
+ click.echo("✅ Python venv created and pip upgraded")
103
+ else:
104
+ click.echo("❌ Neither uv nor Python found. Please install one of them.")
105
+
106
+ @click.command()
107
+ @click.argument("env_name")
108
+ def init_conda(env_name):
109
+ """Initialize a Conda environment"""
110
+ if not check_tool("conda"):
111
+ click.echo("❌ Conda is not installed. Please install Conda first.")
112
+ return
113
+ click.echo(f"📦 Creating Conda environment: {env_name}")
114
+ subprocess.run(["conda", "create", "-y", "-n", env_name, "python=3.12"], check=True)
115
+ click.echo("✅ Conda environment created")
116
+
117
+ @click.command()
118
+ def sync_env():
119
+ """Export requirements for reproducibility"""
120
+ click.echo("📤 Exporting requirements.txt")
121
+ subprocess.run(["uv", "pip", "freeze", ">", "requirements.txt"], shell=True)
122
+ click.echo("✅ requirements.txt exported")
123
+
124
+ @click.command()
125
+ @click.argument("env_file")
126
+ def import_env(env_file):
127
+ """Import environment from requirements.txt or environment.yml"""
128
+ if env_file.endswith(".yml"):
129
+ click.echo(f"📥 Importing Conda environment from {env_file}")
130
+ subprocess.run(["conda", "env", "create", "-f", env_file], check=True)
131
+ else:
132
+ click.echo(f"📥 Importing uv environment from {env_file}")
133
+ subprocess.run(["uv", "pip", "install", "-r", env_file], check=True)
134
+ click.echo("✅ Environment imported")
135
+
136
+ @click.command()
137
+ def help():
138
+ """Show comprehensive help for tdfw"""
139
+ click.echo("""
140
+ TouchDesigner Framework CLI (tdfw)
141
+
142
+ Available commands:
143
+
144
+ doctor Check system readiness for tdfw
145
+ start-app <name> Scaffold a new TouchDesigner app
146
+ --td-path Override TouchDesigner executable path
147
+
148
+ create-ext <name> Create a new extension stub
149
+
150
+ init-env <name> Create a uv-managed Python environment - falls back to Python venv if uv is not available
151
+ init-conda <name> Create a Conda environment
152
+ sync-env Export requirements.txt from current env
153
+ import-env <file> Import env from requirements.txt or environment.yml
154
+ """)
155
+
156
+ @click.command()
157
+ @click.option("--td-path", default=None,
158
+ help="Override path to TouchDesigner executable")
159
+ def doctor(td_path):
160
+ """Check system readiness for tdfw"""
161
+ click.echo("🔎 Running tdfw system check...\n")
162
+
163
+ # uv
164
+ if check_tool("uv"):
165
+ click.echo("✅ uv found")
166
+ else:
167
+ click.echo("⚠️ uv not found (tdfw will fall back to pip)")
168
+
169
+ # pip
170
+ if check_tool("pip"):
171
+ click.echo("✅ pip found")
172
+ else:
173
+ click.echo("❌ pip not found — install Python with pip")
174
+
175
+ # conda
176
+ if check_tool("conda"):
177
+ click.echo("✅ conda found")
178
+ else:
179
+ click.echo("⚠️ conda not found (optional, only needed if you want Conda envs)")
180
+
181
+ # TouchDesigner executable
182
+ default_td_path = "C:\\Program Files\\Derivative\\TouchDesigner\\bin\\TouchDesigner.exe"
183
+ td_exec = td_path if td_path else default_td_path
184
+ if os.path.exists(td_exec):
185
+ click.echo(f"✅ TouchDesigner executable found at {td_exec}")
186
+ else:
187
+ click.echo(f"⚠️ TouchDesigner executable not found at {td_exec}. Use --td-path to override.")
188
+
189
+ click.echo("\n🩺 System check complete.")
190
+
191
+ # ----------------------------
192
+ # Register commands
193
+ # ----------------------------
194
+ cli.add_command(help)
195
+ cli.add_command(doctor)
196
+ cli.add_command(start_app)
197
+ cli.add_command(create_ext)
198
+ cli.add_command(init_env)
199
+ cli.add_command(init_conda)
200
+ cli.add_command(sync_env)
201
+ cli.add_command(import_env)
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: tdfw
3
+ Version: 0.1.1
4
+ Summary: TouchDesigner Framework CLI scaffold tool for opinionated State Driven Command and Control/Code Driven project architecture
5
+ Author-email: Michael Kramer <michael.kramer.guitar@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/MichaelKramerGuitar/tdfw
8
+ Project-URL: Repository, https://github.com/MichaelKramerGuitar/tdfw
9
+ Project-URL: Issues, https://github.com/MichaelKramerGuitar/tdfw/issues
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: click
14
+ Dynamic: license-file
15
+
16
+ ![Coverage](https://codecov.io/gh/MichaelKramerGuitar/tdfw/branch/main/graph/badge.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
17
+
18
+
19
+ # tdfw
20
+ TouchDesigner Framework CLI scaffold tool with an opinionated slant towards State Driven/Code Driven project architecture.
21
+
22
+ ## About
23
+
24
+ Hi, I'm Michael. I play guitar and write code. I was introduced to TouchDesigner by my friend Andrew Zolty, who's also known as `BREAKFAST`. He's an incredible kinetic artist.
25
+
26
+ Getting started with TouchDesigner as a GUI never really happened for me. I started a few YouTube courses on it but didn't have the time to follow through and learn how to use the interface.
27
+
28
+ But the concept of a network of nodes and subnodes made sense to my programmer/software engineer brain. I thought "there must be a purely code driven way to architect these TouchDesinger apps". So I looked on YouTube and found [this](https://www.youtube.com/watch?v=nQT7EhYCVg0) video (read more about that in [BACKGROUND.md](./BACKGROUND.md)). I was thrilled and what has resulted is essentially this tool which abstracts out all the boilerplate he gives.
29
+
30
+ # How To Use
31
+
32
+ ```bash
33
+ # Install
34
+ uv pip install tdfw
35
+
36
+ # Confirm installation and check options
37
+ tdfw help
38
+
39
+ # Start a TouchDesigner App
40
+ tdfw start-app <MyFirstApp>
41
+
42
+ # Create a Python Extension stub (from your TouchDesigner Project Root i.e. the dir with the <MyFirstApp>.toe file)
43
+ tdfw create-ext <MyFirstExt>
44
+ ```
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ tdfw/__init__.py
5
+ tdfw/cli.py
6
+ tdfw.egg-info/PKG-INFO
7
+ tdfw.egg-info/SOURCES.txt
8
+ tdfw.egg-info/dependency_links.txt
9
+ tdfw.egg-info/entry_points.txt
10
+ tdfw.egg-info/requires.txt
11
+ tdfw.egg-info/top_level.txt
12
+ tests/test_cli.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ tdfw = tdfw.cli:cli
@@ -0,0 +1 @@
1
+ click
@@ -0,0 +1 @@
1
+ tdfw
@@ -0,0 +1,116 @@
1
+ # tests/test_cli.py
2
+ import os
3
+ import shutil
4
+ import pytest
5
+ from click.testing import CliRunner
6
+ from tdfw import cli
7
+
8
+ @pytest.fixture
9
+ def runner():
10
+ return CliRunner()
11
+
12
+ @pytest.fixture
13
+ def temp_app(tmp_path):
14
+ """Create a temporary app directory for testing."""
15
+ app_dir = tmp_path / "MyTestApp"
16
+ yield app_dir
17
+ if app_dir.exists():
18
+ shutil.rmtree(app_dir)
19
+
20
+ def test_start_app_creates_structure(runner, temp_app):
21
+ result = runner.invoke(cli.start_app, [str(temp_app)])
22
+ assert result.exit_code == 0
23
+ assert (temp_app / "BAT").exists()
24
+ assert (temp_app / "DAT").exists()
25
+ assert (temp_app / "LOG").exists()
26
+ assert (temp_app / "README.md").exists()
27
+ assert (temp_app / ".gitignore").exists()
28
+ assert (temp_app / "BAT" / "MyTestApp.bat").exists()
29
+ assert (temp_app / "BAT" / "MyTestApp.bash").exists()
30
+ for ext in ["StartupExt.py", "SettingsExt.py", "StateExt.py"]:
31
+ assert (temp_app / "DAT" / ext).exists()
32
+
33
+ def test_start_app_echo_message(runner, temp_app):
34
+ result = runner.invoke(cli.start_app, [str(temp_app)])
35
+ assert "✅ Created TouchDesigner app scaffold" in result.output
36
+
37
+ def test_create_ext_adds_file(runner, temp_app):
38
+ runner.invoke(cli.start_app, [str(temp_app)])
39
+ cwd = os.getcwd()
40
+ os.chdir(temp_app)
41
+ result = runner.invoke(cli.create_ext, ["CameraExt"])
42
+ os.chdir(cwd)
43
+ assert result.exit_code == 0
44
+ ext_file = temp_app / "DAT" / "CameraExt.py"
45
+ assert ext_file.exists()
46
+ content = ext_file.read_text()
47
+ assert "class CameraExt" in content
48
+
49
+ def test_create_ext_without_dat(runner, tmp_path):
50
+ os.chdir(tmp_path)
51
+ result = runner.invoke(cli.create_ext, ["FooExt"])
52
+ assert result.exit_code == 0
53
+ assert "❌ No DAT directory found" in result.output
54
+
55
+ # ----------------------------
56
+ # New command tests
57
+ # ----------------------------
58
+
59
+ def test_help_command(runner):
60
+ result = runner.invoke(cli.help)
61
+ assert result.exit_code == 0
62
+ assert "TouchDesigner Framework CLI" in result.output
63
+ assert "start-app" in result.output
64
+ assert "init-env" in result.output
65
+
66
+ def test_doctor_command_defaults(runner, tmp_path):
67
+ # Run doctor with no override
68
+ result = runner.invoke(cli.doctor)
69
+ assert result.exit_code == 0
70
+ assert "System check complete" in result.output
71
+
72
+ def test_init_env_fallback(runner, tmp_path, monkeypatch):
73
+ # Patch inside cli module
74
+ monkeypatch.setattr(cli, "check_tool", lambda tool: tool == "python")
75
+ env_dir = tmp_path / "venvtest"
76
+ result = runner.invoke(cli.init_env, [str(env_dir)])
77
+ assert "falling back to Python venv" in result.output
78
+
79
+ def test_init_conda_missing(runner, monkeypatch):
80
+ # Patch inside cli module
81
+ monkeypatch.setattr(cli, "check_tool", lambda tool: False)
82
+ result = runner.invoke(cli.init_conda, ["myenv"])
83
+ assert "❌ Conda is not installed" in result.output
84
+
85
+ def test_init_env_no_tools(runner, monkeypatch):
86
+ # Simulate neither uv nor python available
87
+ monkeypatch.setattr(cli, "check_tool", lambda tool: False)
88
+ result = runner.invoke(cli.init_env, ["envX"])
89
+ assert "❌ Neither uv nor Python found" in result.output
90
+
91
+ def test_sync_env_runs(runner, monkeypatch):
92
+ # Patch subprocess.run to avoid actually running uv
93
+ monkeypatch.setattr(cli.subprocess, "run", lambda *a, **k: None)
94
+ result = runner.invoke(cli.sync_env)
95
+ assert result.exit_code == 0
96
+ assert "requirements.txt exported" in result.output
97
+
98
+ def test_import_env_yml(runner, tmp_path, monkeypatch):
99
+ env_file = tmp_path / "env.yml"
100
+ env_file.write_text("name: testenv")
101
+ monkeypatch.setattr(cli.subprocess, "run", lambda *a, **k: None)
102
+ result = runner.invoke(cli.import_env, [str(env_file)])
103
+ assert "Importing Conda environment" in result.output
104
+
105
+ def test_import_env_txt(runner, tmp_path, monkeypatch):
106
+ env_file = tmp_path / "requirements.txt"
107
+ env_file.write_text("click")
108
+ monkeypatch.setattr(cli.subprocess, "run", lambda *a, **k: None)
109
+ result = runner.invoke(cli.import_env, [str(env_file)])
110
+ assert "Importing uv environment" in result.output
111
+
112
+ def test_doctor_missing_td_path(runner, tmp_path):
113
+ # Point doctor to a non-existent path
114
+ fake_path = tmp_path / "TouchDesigner.exe"
115
+ result = runner.invoke(cli.doctor, ["--td-path", str(fake_path)])
116
+ assert "TouchDesigner executable not found" in result.output