mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 10:00:57 +00:00
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.
This commit is contained in:
parent
1a75388a69
commit
186561639e
|
|
@ -1,5 +1,5 @@
|
|||
// python3.js
|
||||
// Copyright 2019-2025, Namhyeon Go <gnh1201@catswords.re.kr> and the WelsonJS contributors.
|
||||
// Namhyeon Go <gnh1201@catswords.re.kr> 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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user