Skip to content

Commit f224f1f

Browse files
committed
feat(typing): add __filename and __dirname
1 parent cacaea4 commit f224f1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/pythonmonkey/global.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ declare const python: {
3737
paths: string[];
3838
};
3939

40+
declare var __filename: string;
41+
declare var __dirname: string;
42+
4043
/** see `pm.eval` */
4144
declare function pmEval(code: string): any;
4245

0 commit comments

Comments
 (0)