Cleanup init and remove old unused files

refactor
Jonas Holzman 2025-03-19 17:36:52 +01:00
parent bc19b0cc6d
commit 30ae14f9bb
3 changed files with 7 additions and 28 deletions

View File

@ -1,14 +1,13 @@
bl_info = { bl_info = {
"name": "Node Kit", "name": "Node Kit",
"author": "Florentin Luce", "author": "Florentin Luce, Christophe Seux, Jonas Holzman",
"version": (0, 1), "version": (0, 1),
"blender": (4, 0, 2), "blender": (4, 3, 2),
"category": "Node"} "location": "Node Editor -> Node Kit",
"description": "Collection of node-related tools",
"doc_url": "https://git.autourdeminuit.com/autour_de_minuit/node_kit",
import sys "category": "Node"
import importlib }
from pathlib import Path
from . import ui, operators from . import ui, operators
@ -19,15 +18,7 @@ modules = (
) )
if "bpy" in locals():
import importlib
for mod in modules:
importlib.reload(mod)
def register(): def register():
print('Register Node kit')
for mod in modules: for mod in modules:
mod.register() mod.register()

View File

View File

@ -1,12 +0,0 @@
import plateform
from pathlib import Path
from os.path import expandvars
def get_cache_dir()
if plateform.system() == 'Linux':
return Path(expandvars('$HOME/.cache/blender'))
elif plateform.system() == 'Darwin':
return Path('/Library/Caches/Blender')
elif plateform.system() == 'Windows':
return Path(expandvars('%USERPROFILE%\AppData\Local\Blender Foundation\Blender'))