From 186561639ec17f21ebb48cf404c29d3128a0c3b7 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 20 Nov 2025 17:24:26 +0900 Subject: [PATCH] Add FILE module import and init PythonObject Imported the FILE module in python3.js and updated PythonObject to initialize the default Python binary path upon creation. Also removed the copyright year range from the file header. --- lib/python3.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/python3.js b/lib/python3.js index 5231bfe..8dba945 100644 --- a/lib/python3.js +++ b/lib/python3.js @@ -1,5 +1,5 @@ // python3.js -// Copyright 2019-2025, Namhyeon Go and the WelsonJS contributors. +// Namhyeon Go and the WelsonJS contributors. // SPDX-License-Identifier: GPL-3.0-or-later // https://github.com/gnh1201/welsonjs // @@ -7,6 +7,7 @@ // var SYS = require("lib/system"); var SHELL = require("lib/shell"); +var FILE = require("lib/file"); function PythonObject() { this.binPath = null; @@ -50,6 +51,9 @@ function PythonObject() { scriptName ].concat(args)); }; + + // Initialize default Python binary path based on current version and system arch + this.create(); } exports.PythonObject = PythonObject;