init
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user