Skip to content

Commit 79f59db

Browse files
committed
update
1 parent dc4cede commit 79f59db

File tree

10 files changed

+28
-10
lines changed

10 files changed

+28
-10
lines changed

binpythonfull.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ def optreadfile():
104104
import http.server
105105
import socketserver
106106
#except ImportError:
107-
except ImportError:
107+
except(Exception, BaseException) as error:
108108
print("Unable to use any library, the program does not work properly, please rebuild")
109+
f = open("binpython_importerror.log", "a")
110+
f.write('Import Error: ' + time.strftime('%m-%d-%Y %H:%M:%S',time.localtime(time.time())) + ' ' + str(error) + '\n')
109111
#gui import
110112
try:
111113
import tkinter
@@ -452,6 +454,14 @@ def do_user(self, arg):
452454
os.chdir(runpath + f"/binpython_files/userdata/home/{arg}")
453455
def do_install(self, arg):
454456
'Install package'
457+
try:
458+
os.makedirs(runpath + f"/binpython_files/apps/{cmd_username}")
459+
except:
460+
pass
461+
try:
462+
os.makedirs(runpath + f"/binpython_files/apps/{cmd_username}/installtemp")
463+
except:
464+
pass
455465
try:
456466
global appsource
457467
f = open(runpath + f"/binpython_files/apps/source.config", "r")
@@ -463,14 +473,6 @@ def do_install(self, arg):
463473
if arg == '':
464474
print("Please use install <package name> missing options <package name>")
465475
exit()
466-
try:
467-
os.makedirs(runpath + f"/binpython_files/apps/{cmd_username}")
468-
except:
469-
pass
470-
try:
471-
os.makedirs(runpath + f"/binpython_files/apps/{cmd_username}/installtemp")
472-
except:
473-
pass
474476
try:
475477
print("[*] download package")
476478
wget.download(f"{appsource}{arg}.bpkg", runpath + f"/binpython_files/apps/{cmd_username}/installtemp/{arg}.bpkg")
@@ -540,7 +542,7 @@ def do_runapp(self, arg):
540542
f = open(runpath + f"/binpython_files/apps/{cmd_username}/{arg}/main.py")
541543
exec(f.read())
542544
except(Exception, BaseException) as error:
543-
print('Runapp failed, please see the log "binpython_pkg_error.log" for details')
545+
print('App not exits or failed, please see the log "binpython_pkg_error.log" for details')
544546
f = open("binpython_pkg_error.log", "a")
545547
f.write('Run package Error: ' + time.strftime('%m-%d-%Y %H:%M:%S',time.localtime(time.time())) + ' ' + str(error) + '\n')
546548
if __name__ == '__main__':

dist/binpython.exe

14.3 MB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://raw.githubusercontent.com/xingyujie/binpython-repository/main/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from pywebio import start_server
2+
from pywebio.input import *
3+
from pywebio.output import *
4+
from pywebio.session import info as session_info
5+
6+
7+
name = input("What's your name")
8+
print("Your name is %s" % name)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
xingyujie
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Run package Error: 09-30-2022 01:32:19 [Errno 2] No such file or directory: 'C:\\Users\\xingyujie\\Documents\\GitHub\\binpython\\dist/binpython_files/apps/xingyujie/pywebio/main.py'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
code
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Run package configuration file Warning: 09-30-2022 01:32:09 [Errno 2] No such file or directory: 'C:\\Users\\xingyujie\\Documents\\GitHub\\binpython\\dist/binpython_files/apps/xingyujie/pywebhi/config.py'

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ pyinstaller
33
pywebio
44
tornado
55
xlrd
6+
wget
7+
requests

0 commit comments

Comments
 (0)