Skip to content

Commit 303a0d5

Browse files
committed
added __name__ main to initial scope
1 parent af9fc6b commit 303a0d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspython-cli",
3-
"version": "2.1.16",
3+
"version": "2.1.17",
44
"description": "CLI for jspython. Allows you to run jspython (*.jspy) files",
55
"main": "./lib/public-api.js",
66
"bin": {

src/jspython-node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { trimChar } from './utils';
66

77
const rootFolder = process.cwd().split('\\').join('/');
88
export const initialScope: any = {
9+
__name__: 'main',
910
session: {},
1011
asserts: [] as AssertInfo[]
1112
};

0 commit comments

Comments
 (0)