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;