ubuntu22.04 에서는 python3 으로 실행해야 함.
This commit is contained in:
@ -16,7 +16,7 @@ weather_file = os.path.join(base_dir, weather_filename)
|
||||
# 파일 존재 확인 및 생성 루프
|
||||
while not os.path.isfile(weather_file):
|
||||
print(f"[{datetime.now().strftime('%H:%M:%S')}] {weather_file} 파일이 없습니다. {capture_script} 실행 중...")
|
||||
subprocess.call(['python', capture_script])
|
||||
subprocess.call(['python3', capture_script])
|
||||
#time.sleep(1)
|
||||
|
||||
print(f"[{datetime.now().strftime('%H:%M:%S')}] {weather_file} 파일을 확인했습니다. 계속 진행합니다.")
|
||||
|
||||
Reference in New Issue
Block a user