Skip to content

Commit

Permalink
修复多处bug
Browse files Browse the repository at this point in the history
感谢#33#32#31
close #33
close #31
  • Loading branch information
0Chencc committed Jun 16, 2021
1 parent 8661f7d commit 983b2ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/Core.kt
Original file line number Diff line number Diff line change
Expand Up @@ -839,9 +839,10 @@ class Core : JFrame() {
val item=JMenuItem(filename)
item.actionCommand=filename
item.addActionListener { arg0 ->
val input=textArea.text
val input=Py.newStringOrUnicode(textArea.text)
val props=Properties()
props["python.home"]=System.getProperty("user.dir")+"/Lib"
//props["python.home"]=System.getProperty("user.dir")+"/Lib"
props["python.home"]=System.getProperty("user.dir")
props["python.console.encoding"]="UTF-8"
props["python.security.respectJavaAccessibility"]="false"
props["python.import.site"]="false"
Expand Down

0 comments on commit 983b2ae

Please sign in to comment.