개정판 7d8b60dc
issue #655: modified time format change
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
1 | 1 |
import sys |
2 |
import os, time, subprocess, ctypes |
|
2 |
import os, time, subprocess, ctypes, datetime
|
|
3 | 3 |
from ctypes import wintypes |
4 | 4 |
_GetShortPathNameW = ctypes.windll.kernel32.GetShortPathNameW |
5 | 5 |
_GetShortPathNameW.argtypes = [wintypes.LPCWSTR, wintypes.LPWSTR, wintypes.DWORD] |
... | ... | |
94 | 94 |
boxName = data.replace('.png', '.boxS') |
95 | 95 |
if adata.find(boxName) is not -1: |
96 | 96 |
boxPath = os.path.join(project.getTrainingFilePath(), boxName) |
97 |
modifiedTime = time.ctime(os.path.getmtime(boxPath))
|
|
97 |
modifiedTime = str(datetime.datetime.strptime(time.ctime(os.path.getmtime(boxPath)), "%a %b %d %H:%M:%S %Y"))
|
|
98 | 98 |
self.ui.tableWidgetList.setItem(row, 2, QTableWidgetItem(modifiedTime)) |
99 | 99 |
break |
100 | 100 |
else: |
... | ... | |
242 | 242 |
maxLineH = preMaxLineH |
243 | 243 |
lineW = areaW |
244 | 244 |
totalHeight += maxLineH |
245 |
maxLineH = areaH ##sung
|
|
245 |
maxLineH = areaH |
|
246 | 246 |
totalHeight += maxLineH |
247 | 247 |
totalSeedHeight = totalHeight |
248 | 248 |
#print('total area real : ' + str(totalBaseWidth * totalSeedHeight) +', total width : ' + str(totalBaseWidth) + ', total height : ' + str(totalHeight) + ', ratio : ' + str(totalHeight / totalBaseWidth)) |
내보내기 Unified diff