You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Changing the value to 0 will close the prompt that the library does not exist
12
+
ver="0.20-releases"
20
13
21
-
releases_ver="offical-with-ideplus"
22
-
importlibs="os"# Don't use "import xxx"
14
+
libs_warning="1"
15
+
#1 is ture 0 is false.
16
+
#Changing the value to 0 will close the prompt that the library does not exist
23
17
24
-
# Imported library name, please use "importlibs="<library name>" instead of "import <library name>"
25
-
# Please note: The "importlibs" function does not support loading functions (such as from xxxx import xxxx, if necessary, please write it in the following location. However, please note that this operation may have the risk of error reporting, please report issues or solve it yourself
26
-
# xxxxxxxxxxxxxx
18
+
releases_ver="offical-with-ideplus"
19
+
importlibs="os"#Don't use "import xxx"
20
+
#Imported library name, please use "importlibs="<library name>" instead of "import <library name>"
21
+
#Please note: The "importlibs" function does not support loading functions (such as from xxxx import xxxx, if necessary, please write it in the following location. However, please note that this operation may have the risk of error reporting, please report issues or solve it yourself
print("Warning: Custom import library %s does not exist, please check the source code library configuration and rebuild"%importlibs)
46
36
print("")
47
37
try:
48
-
# base import
38
+
#base import
49
39
importgetopt
50
40
importsys
51
41
importplatform
52
42
importos
53
-
#fix for exit()
43
+
#fix for exit()
54
44
fromsysimportexit
55
-
#import for http_server
45
+
#import for http_server
56
46
importhttp.server
57
47
importsocketserver
58
-
#except ImportError:
48
+
#except ImportError:
59
49
exceptImportError:
60
50
print("Unable to use any library, the program does not work properly, please rebuild")
61
-
#gui import
51
+
#gui import
62
52
try:
63
53
importtkinter
64
54
importtkinterastk
65
55
fromtkinterimport*
66
56
importturtle
67
-
#warning for gui
57
+
#warning for gui
68
58
exceptImportError:
69
59
iflibs_warning=="1":
70
60
print("Warning: Some GUI (graphical) libraries for BINPython do not exist, such as tkinter and turtle. Because they are not built when they are built. If you need to fix this warning, please complete the support libraries imported in the source code at build time (use pip or build it yourself), if your system does not support these libraries, you can remove or change this hint in the source code and rebuild")
71
61
print("")
72
62
73
-
#import math
63
+
#import math
74
64
try:
75
65
importfractions
76
66
importcmath
77
67
exceptImportError:
78
68
iflibs_warning=="1":
79
69
print("Warning: Some math or computation libraries for BINPython do not exist, such as fractions and cmath. Because they weren't built when they were built. If you need to fix this warning, please complete the support libraries imported in the source code when building (use pip or build it yourself), if your system does not support these libraries, you can remove or change this prompt in the source code and rebuild")
80
70
print("")
81
-
#rlcompleter
82
-
#import for normal
71
+
#rlcompleter
72
+
#import for normal
83
73
try:
84
-
#str
74
+
#str
85
75
importrlcompleter
86
76
importarray
87
77
exceptImportError:
88
78
iflibs_warning=="1":
89
79
print("Warning: Some libraries for functions, data types, etc. for BINPython do not exist, such as rlcomplter and array. Because they weren't built when they were built. If you need to fix this warning, please complete the support libraries imported in the source code when building (use pip or build it yourself), if your system does not support these libraries, you can remove or change this prompt in the source code and rebuild")
90
80
print("")
91
81
try:
92
-
importfilecmp
93
-
importtempfile
82
+
importfilecmp
83
+
importtempfile
94
84
exceptImportError:
95
85
iflibs_warning=="1":
96
86
print("Warning: Some file manipulation libraries for BINPython do not exist, such as filecmp and tempfile. Because they weren't built when they were built. If you need to fix this warning, please complete the support libraries imported in the source code when building (use pip or build it yourself), if your system does not support these libraries, you can remove or change this prompt in the source code and rebuild")
97
87
print("")
98
-
# def
99
-
100
-
88
+
#def
101
89
defhelp():
102
90
print("[*] BINPython Help")
103
91
print("""
@@ -109,33 +97,29 @@ def help():
109
97
-i --idle Open BINPython IDLE Code Editor
110
98
-p --plus Open BINPython IDE Plus Code Editor(beta) with http web server
0 commit comments