Skip to content

Commit

Permalink
hotfix: 파일 경로 절대 경로로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jongmee committed Aug 16, 2024
1 parent f4447a4 commit 8b005f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class DataInitializer implements ApplicationRunner {

@Override
public void run(ApplicationArguments args) {
String weatherFilePath = "src/main/java/com/pokerogue/helper/battle/data/weather.txt";
String weatherFilePath = System.getProperty("user.dir") + "/" + "src/main/java/com/pokerogue/helper/battle/data/weather.txt";
try (BufferedReader br = new BufferedReader(new FileReader(weatherFilePath))) {
int lineCount = 0;
String line;
Expand Down

0 comments on commit 8b005f2

Please sign in to comment.