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
Copy file name to clipboardExpand all lines: binpythonfull.py
+45-8Lines changed: 45 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
####################################
11
11
#build configure
12
12
13
-
ver="0.41-build-full"
13
+
ver="0.43-build-full"
14
14
15
15
libs_warning="1"
16
16
#1 is ture 0 is false.
@@ -19,8 +19,8 @@
19
19
20
20
releases_ver="offical"
21
21
importlibs="os"
22
-
cloudrunver="1.03"
23
-
cmdver="0.04"
22
+
cloudrunver="1.04"
23
+
cmdver="0.06"
24
24
#Imported library name, please use "importlibs="<library name>" instead of "import <library name>"
25
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
26
#xxxxxxxxxxxxxx
@@ -97,6 +97,7 @@ def optreadfile():
97
97
importrequests
98
98
importurllib
99
99
importwget
100
+
importshutil
100
101
101
102
#fix for exit()
102
103
fromsysimportexit
@@ -197,7 +198,9 @@ def binpython_shell():
197
198
optreadfile()
198
199
except:
199
200
pass
200
-
201
+
defexecpyfile(filename):
202
+
f=open(filename)
203
+
exec(f.read())
201
204
defcloudruncli():
202
205
203
206
print("Welcome to CloudRun CLI. Let your script run in the cloud with BINPython")
@@ -304,6 +307,11 @@ def listfiles():
304
307
dirs=os.listdir("./")
305
308
forfileindirs:
306
309
print (file)
310
+
deflistfilesfunc(path):
311
+
importos
312
+
dirs=os.listdir(path)
313
+
forfileindirs:
314
+
print (file)
307
315
defdownload(url,path):
308
316
ifnotos.path.exists(path):
309
317
os.mkdir(path)
@@ -413,7 +421,10 @@ def do_seteditor(self, arg):
413
421
defdo_edit(self, arg):
414
422
'Before using this command, you must use "seteditor <editorname>" to set the editor (see the usage of this parameter for details), otherwise it cannot be called up. edit usage: edit <filename>'
'To change the software source, usage: editsouce <souceurl>. Please pay attention to the software source specification, otherwise you will get an error. <souceurl> like this: http://xxx.com/'
0 commit comments