Skip to content

Commit a85695d

Browse files
Sandbox Updated
1 parent f69b38a commit a85695d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sandbox/js/ttkproxy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,11 @@ class TTkProxy {
189189
this.ttk_clean()
190190
console.log("Run App")
191191

192-
let pwd = this.pyodide.PATH.dirname(filename)
192+
let pwd = this.pyodide.PATH.dirname(filename)
193+
let file = this.pyodide.PATH.basename(filename)
193194

194195
this.pyodide.runPython(`
195-
__file__='`+filename+`'
196+
__file__='`+file+`'
196197
os.chdir('`+pwd+`')
197198
ttk.TTkCfg.maxFps = `+fps,{ globals: this.namespace })
198199

0 commit comments

Comments
 (0)