This commit is contained in:
dsyoon
2022-08-05 02:06:51 +09:00
parent e0a336c8cc
commit 7c0cbcb680
2 changed files with 4 additions and 0 deletions

View File

@@ -62,6 +62,8 @@ if week in (0, 1, 2, 3, 4):
analyzerSqlite = AnalyzerSqlite(PROJECT_HOME, stockFileName) analyzerSqlite = AnalyzerSqlite(PROJECT_HOME, stockFileName)
print("\n[종목 결정]") print("\n[종목 결정]")
day = datetime.today().strftime("%Y%m%d") 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 = PROJECT_HOME + "/resources/analysis/" + day
if os.path.isdir(outPath): if os.path.isdir(outPath):
shutil.rmtree(outPath) shutil.rmtree(outPath)

View File

@@ -917,6 +917,8 @@ if __name__ == "__main__":
day = datetime.today().strftime("%Y%m%d") day = datetime.today().strftime("%Y%m%d")
# HTML 출력 # HTML 출력
if not os.path.isdir(PROJECT_HOME + "/resources/analysis"):
os.mkdir(PROJECT_HOME + "/resources/analysis")
outPath = PROJECT_HOME + "/resources/analysis/"+day outPath = PROJECT_HOME + "/resources/analysis/"+day
if os.path.isdir(outPath): if os.path.isdir(outPath):
shutil.rmtree(outPath) shutil.rmtree(outPath)