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
+44-16Lines changed: 44 additions & 16 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.34-build-full"
13
+
ver="0.36-build-full"
14
14
15
15
libs_warning="1"
16
16
#1 is ture 0 is false.
@@ -19,8 +19,8 @@
19
19
buildversion="plus"#plus version and standard version
20
20
21
21
releases_ver="offical"+buildversion+"-building"
22
-
importlibs="os"#Don't use "import xxx"
23
-
cloudrunver="1.01"
22
+
importlibs="os"
23
+
cloudrunver="1.03"
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
print("BINPython "+ver+"-"+releases_ver+" By: Edward Hsing(Xing Yu Jie)[https://github.com/xingyujie/binpython] AGPL-3.0 LICENSE Release")
286
299
print("Python "+platform.python_version())
287
300
sys.exit()
288
301
ifopt_namein ('-f','--file'):
@@ -606,22 +619,37 @@ def examplerequests():
606
619
CloudRun Help:
607
620
get -- Enter application/script name to get run from software repository
608
621
load -- Run scripts from custom URL
622
+
editsource -- Set up custom sources and save via configuration files
623
+
shell -- Go to BINPython Shell
609
624
version -- CloudRun Version
610
-
help -- run this help
625
+
help -- show this help
611
626
""")
612
627
ifcloudruncli=='get':
613
628
print("Get apps/scripts in software repository")
614
629
print("Under normal circumstances, we review the code of the software repositories and generally do not have any malware. But we will not take any legal responsibility")
615
630
print()
616
631
pkgname=input("packagename: ")
617
-
cloudrun.get(pkgname)
632
+
ifpkgname=='':
633
+
pass
634
+
else:
635
+
cloudrun.get(pkgname)
618
636
ifcloudruncli=='load':
619
637
print("Let CloudRun run scripts through a custom server")
620
638
print("The format should be like this: http://domain.com/filename.py")
621
639
url=input("Python script URL: ")
622
-
cloudrun.load(url)
640
+
ifurl=='':
641
+
pass
642
+
else:
643
+
cloudrun.load(url)
644
+
ifcloudruncli=='editsource':
645
+
print('caution! The set software source must be in a standard format, otherwise it may not work, like http://127.0.0.1/, if you set http://127.0.0.1, it will not work properly, even if there is one less "/"!')
646
+
entersource=input("Please input sources server address: ")
647
+
cloudrun.editsource(entersource)
648
+
print("success!")
649
+
ifcloudruncli=='shell':
650
+
binpython_shell()
623
651
ifcloudruncli=='version':
624
-
print(f"CloudRun-{cloudrunver} BINPython version By:Edward Hsing(xingyujie) AGPL-3.0 LICENSE")
652
+
print(f"CloudRun-{cloudrunver} BINPython version By:Edward Hsing(Xing Yu Jie) AGPL-3.0 LICENSE")
0 commit comments