Skip to content

Commit 24b9f45

Browse files
committed
0.31-canary
1 parent cb293f0 commit 24b9f45

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

binpythonfull.py

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
####################################
1111
#build configure
1212

13-
ver="0.30-dev-full"
13+
ver="0.31-canary-full"
1414

1515
libs_warning="1"
1616
#1 is ture 0 is false.
@@ -545,9 +545,46 @@ def TestPlatform():
545545
TestPlatform()
546546
except:
547547
pass
548+
549+
#plugin start
550+
plugin_name = ''
551+
def binpython_plugin_name(key):
552+
global plugin_name
553+
plugin_name = key
554+
#print(plugin_name)
555+
plugin_anthor = ''
556+
def binpython_plugin_anthor(key):
557+
global plugin_anthor
558+
plugin_anthor = key
559+
#description
560+
plugin_description = ''
561+
def binpython_plugin_description(key):
562+
global plugin_description
563+
plugin_description = key
564+
def binpython_plugin_showinfo():
565+
print("BINPython Plugin Info:")
566+
print("Plugin Name: " + plugin_name)
567+
print("Plugin Anthor: " + plugin_anthor)
568+
print("Plugin description: " + plugin_description)
569+
570+
571+
plugin_loadmain = ''
572+
def binpython_plugin_loadmain(key):
573+
global plugin_loadmain
574+
plugin_loadmain = key
575+
#binpython_plugin_loadmain("function.py")
576+
try:
577+
f = open("binpython_plugin/pluginconfig.binpython",encoding = "utf-8")
578+
exec(f.read())
579+
f = open("binpython_plugin/" + plugin_loadmain,encoding = "utf-8")
580+
exec(f.read())
581+
binpython_shell()
582+
except:
583+
pass
548584
try:
549585
filename = open("startupfile.conf",encoding = "utf-8")
550586
startupcode = open(filename.read(),encoding = "utf-8")
551587
exec(startupcode.read())
552588
except:
553589
binpython_shell()
590+
binpython_shell()

0 commit comments

Comments
 (0)