but-cli 0.1.1__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: but-cli
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A useful cli for Blender
5
5
  Author: HoppouDev
6
6
  Author-email: HoppouDev <me@hoppou.dev>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "but-cli"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "A useful cli for Blender"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "but-cli"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "A useful cli for Blender"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -1,4 +1,3 @@
1
- import bpy
2
1
  from typer import Typer
3
2
 
4
3
  app = Typer()
@@ -6,6 +5,10 @@ app = Typer()
6
5
 
7
6
  @app.command()
8
7
  def but(file_name: str) -> None:
8
+ # Imported here, not at module level: importing bpy boots Blender (~0.3s),
9
+ # which `--help` and argument errors don't need.
10
+ import bpy
11
+
9
12
  bpy.ops.wm.save_as_mainfile(filepath=f"{file_name}.blend")
10
13
 
11
14
 
File without changes