Skip to content

Commit

Permalink
- Update: versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
odil24 authored Dec 27, 2024
1 parent 2e9b6b2 commit f0a1ca7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_bin_directory():
mac_version = tuple(map(int, platform.mac_ver()[0].split(".")))
if mac_version < (10, 9, 0):
raise Exception("\n\nUnsupported Mac OS version. 10.9 or higher is required.")

if platform.system() == "Windows":
# Ensure nvrtc-builtins64_101.dll can be found
bin_directory = get_bin_directory()
Expand All @@ -41,7 +41,7 @@ def get_bin_directory():
import certifi
os.environ["SSL_CERT_FILE"] = certifi.where()
os.environ["REQUESTS_CA_BUNDLE"] = certifi.where()

# Make sure denoiser is executable
denoiser_path = which("oidnDenoise", mode=os.F_OK, path=get_bin_directory() + os.pathsep + os.environ["PATH"])
if not os.access(denoiser_path, os.X_OK):
Expand All @@ -50,7 +50,7 @@ def get_bin_directory():


try:
import pyluxcore
from .bin import pyluxcore
except ImportError as error:
msg = "\n\nCould not import pyluxcore."
if platform.system() == "Windows":
Expand All @@ -72,15 +72,14 @@ def get_bin_directory():
"blender": (4, 2, 0),
"category": "Render",
"description": "LuxCoreRender integration for Blender",
"warning": "beta2",

"warning": "beta3",
"wiki_url": "https://wiki.luxcorerender.org/",
"tracker_url": "https://github.com/LuxCoreRender/BlendLuxCore/issues/new",
}
bl_info2 = bl_info # TODO

from . import properties, engine, handlers, operators, ui, nodes


def register():
engine.register()
handlers.register()
Expand All @@ -91,9 +90,10 @@ def register():

from .utils.log import LuxCoreLog
pyluxcore.Init(LuxCoreLog.add)
version_string = f'{bl_info2["version"][0]}.{bl_info2["version"][1]}{bl_info2["warning"]}'
version_string = f'{bl_info["version"][0]}.{bl_info["version"][1]}{bl_info["warning"]}'
print(f"BlendLuxCore {version_string} registered (with pyluxcore {pyluxcore.Version()})")


def unregister():
engine.unregister()
handlers.unregister()
Expand Down

0 comments on commit f0a1ca7

Please sign in to comment.