添加oem解析 未完成
This commit is contained in:
@@ -15,6 +15,7 @@ from bin.log import log_init
|
||||
from bin.bin_to_hex import bin_to_hex_file
|
||||
from bin.bin_to_hex import bin_file_decrypt
|
||||
from bin.bin_to_hex import clear_tmp
|
||||
from bin.base import bin_path
|
||||
|
||||
|
||||
def init_send(s_port:serial.Serial, send_str:str):
|
||||
@@ -223,14 +224,6 @@ def burn_fun():
|
||||
print_device_str(ser_read_data)
|
||||
|
||||
|
||||
# 获取执行文件所在的目录
|
||||
def bin_path():
|
||||
if(sys.argv[0].endswith('.exe')):
|
||||
path=os.path.dirname(os.path.realpath(sys.executable))
|
||||
else:
|
||||
path=os.path.abspath(__file__)
|
||||
path=os.path.split(path)[0]
|
||||
return os.path.join(path,'bin')
|
||||
|
||||
def global_def():
|
||||
global init_str
|
||||
|
Reference in New Issue
Block a user