bug 修复

main
chaopower 2023-07-12 14:27:18 +08:00
parent f9a47149b5
commit 8b14fda573
4 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -211,3 +211,4 @@ log/*
!log/readme.md
example/*
!example/readme.md
result/*

View File

@ -1,7 +1,7 @@
import os
import logging
basedir = os.path.dirname(os.path.realpath(__file__))
basedir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
def log(name):

View File

@ -208,7 +208,7 @@ class AutoLayout:
try:
self.assign_samples()
except Exception as e:
self.return_log.append(f'排样出错, 请联系!{e}')
self.return_log.append(f'nova_xplus排样出错, 请联系!{e}')
self.index_assignments = {}
outputname = 'assignments_%s_%s' % (datetime.now().strftime("%m%d%H%M"), os.path.basename(self.path))
outputpath = os.path.join(self.output, 'result', outputname)

View File

@ -266,7 +266,7 @@ class AutoLayout:
try:
self.assign_samples()
except Exception as e:
self.return_log.append(f'排样出错, 请联系!{e}')
self.return_log.append(f'T7排样出错, 请联系!{e}')
self.index_assignments = {}
outputname = 'assignments_%s_%s' % (datetime.now().strftime("%m%d%H%M"), os.path.basename(self.path))
outputpath = os.path.join(self.output, 'result', outputname)