This commit is contained in:
dsyoon
2022-08-05 02:20:26 +09:00
parent 7c0cbcb680
commit 40534b87d5
2 changed files with 29 additions and 28 deletions

View File

@@ -61,10 +61,12 @@ if week in (0, 1, 2, 3, 4):
analyzerSqlite = AnalyzerSqlite(PROJECT_HOME, stockFileName)
print("\n[종목 결정]")
# HTML 출력
outPath = os.path.join(PROJECT_HOME, "resources", "analysis")
if not os.path.isdir(outPath):
os.mkdir(outPath)
day = datetime.today().strftime("%Y%m%d")
if not os.path.isdir(PROJECT_HOME + "/resources/analysis"):
os.mkdir(PROJECT_HOME + "/resources/analysis")
outPath = PROJECT_HOME + "/resources/analysis/" + day
outPath = os.path.join(outPath, day)
if os.path.isdir(outPath):
shutil.rmtree(outPath)
os.mkdir(outPath)