fix base dir bugs

This commit is contained in:
copper 2022-05-31 13:23:42 +08:00
parent a8b0ba92fd
commit 74268defcf
3 changed files with 19 additions and 2 deletions

16
log.txt
View File

@ -18,3 +18,19 @@
2022-05-31 13:08:31,271 - root - INFO - remain_days: 183
2022-05-31 13:08:32,678 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:08:32,679 - root - INFO - remain_days: 183
2022-05-31 13:11:22,682 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:11:22,682 - root - INFO - remain_days: 183
2022-05-31 13:11:24,048 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:11:24,048 - root - INFO - remain_days: 183
2022-05-31 13:12:18,251 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:12:18,251 - root - INFO - remain_days: 183
2022-05-31 13:12:19,616 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:12:19,616 - root - INFO - remain_days: 183
2022-05-31 13:13:44,594 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:13:44,594 - root - INFO - remain_days: 183
2022-05-31 13:13:45,939 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:13:45,939 - root - INFO - remain_days: 183
2022-05-31 13:20:24,284 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:20:24,284 - root - INFO - remain_days: 183
2022-05-31 13:20:25,661 - root - INFO - lic data:2022-12-01 00:00:00
2022-05-31 13:20:25,661 - root - INFO - remain_days: 183

View File

@ -110,7 +110,7 @@ class BasicMethod(BasicPlugin):
min_diff = math.inf
for j in range(yblocks + 1):
self.message_send.emit(f'计算{j}/{yblocks}')
self.send_message.emit(f'计算{j}/{yblocks}')
block_xy = (0, j * cell_size[1])
if block_xy[1] > ysize:
break
@ -159,6 +159,7 @@ class BasicMethod(BasicPlugin):
# hist += hist_t
# print(hist)
del temp_in_ds
del out_normal_ds
try:
os.remove(out_tif)
except:

View File

@ -23,7 +23,7 @@ class Settings(QSettings):
@property
def root(self):
_r = os.path.join(BASE_DIR, '/plugins')
_r = os.path.join(BASE_DIR, 'plugins')
if not os.path.exists(_r):
os.makedirs(_r)
return _r