Skip to content

Commit

Permalink
lua - fix syntax checking
Browse files Browse the repository at this point in the history
  • Loading branch information
HENDRIX-ZT2 committed Nov 26, 2024
1 parent c9be8e5 commit 843582d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Frontier's Cobra Engine Formats",
"author": "Harlequinz Ego, HENDRIX et al.",
"blender": (4, 0, 0),
"version": (2024, 11, 24),
"version": (2024, 11, 25),
"location": "File > Import-Export",
"description": "Import-Export models, skeletons and animations",
"warning": "",
Expand Down
6 changes: 3 additions & 3 deletions __version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# this file is auto-generated by the pre-commit hook increment_version.py
VERSION = "2024.11.24"
COMMIT_HASH = "dbaa5aab8"
COMMIT_TIME = "Sun Nov 24 12:49:24 2024 +0100"
VERSION = "2024.11.25"
COMMIT_HASH = "c9be8e58f"
COMMIT_TIME = "Mon Nov 25 11:42:46 2024 +0100"
3 changes: 2 additions & 1 deletion ovl_util/texconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def check_lua_syntax(lua_path):
function_string = f'"{luacheck}" "{lua_path}" --codes'
lua_name = os.path.basename(lua_path)
# capture the console output
output = subprocess.Popen(function_string, stdout=subprocess.PIPE, encoding=sys.getdefaultencoding()).communicate()[0]
bytes_output = subprocess.Popen(function_string, stdout=subprocess.PIPE).communicate()[0]
output = bytes_output.decode(sys.getdefaultencoding())
lines = [line.strip() for line in output.split("\r\n")]
for line in lines:
if line.startswith(lua_path):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cobra-tools"
version = "2024.11.24"
version = "2024.11.25"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = "==3.11.*"
Expand Down

0 comments on commit 843582d

Please sign in to comment.