Skip to content

Commit a7008a4

Browse files
committed
py_lua_helper: refactor some internal class fields
1 parent 9a73d65 commit a7008a4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

python_lua_helper/py_lua_helper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ def __init__(
4545
lua_binary: Path to specific Lua binary (optional, will be auto-detected if not provided)
4646
lua_args: Additional arguments to pass to Lua script (will be placed to loader.args)
4747
"""
48-
self.lua_config_script = os.path.abspath(lua_config_script)
48+
self._lua_config_script = os.path.abspath(lua_config_script)
4949
self.export_vars = export_vars or []
5050
self.pre_script = pre_script
5151
self.post_script = post_script
5252
self.extra_strings = extra_strings or []
53-
self.work_dir = work_dir or os.path.dirname(self.lua_config_script)
53+
self.work_dir = work_dir or os.path.dirname(self._lua_config_script)
5454
self.temp_dir = temp_dir
5555
self.min_lua_version = min_lua_version or "5.1.0"
5656
self.max_lua_version = max_lua_version or "5.4.999"
5757
self.lua_binary = lua_binary
5858
self.lua_args = lua_args or []
5959
self.lua_actual_version = None
6060
# Validate required files exist
61-
if not os.path.exists(self.lua_config_script):
61+
if not os.path.exists(self._lua_config_script):
6262
raise FileNotFoundError(
63-
f"Main config file not found: {self.lua_config_script}"
63+
f"Main config file not found: {self._lua_config_script}"
6464
)
6565
# Initialize internal state
6666
self._variables: Dict[str, str] = {}
@@ -229,7 +229,7 @@ def _run_lua_loader(self):
229229
]
230230
)
231231
# Add configuration parameters
232-
cmd.extend(["-c", self.lua_config_script])
232+
cmd.extend(["-c", self._lua_config_script])
233233
# Add export variables
234234
for var in self.export_vars:
235235
cmd.extend(["-e", var])

0 commit comments

Comments
 (0)