Use relative path for csv files instead of absolute

This commit is contained in:
Guntis Smaukstelis
2023-05-03 23:07:34 +03:00
parent 0227ac3b43
commit 77bb4f40c6
+1 -1
View File
@@ -12,7 +12,7 @@ import scala.util.Try
object DBService {
private val dateFormatter = DateTimeFormatter.ofPattern("yyyyMMdd_HHmm")
private val dataPath = "/Users/guntissmaukstelis/sandbox/WeatherTool/data/"
private val dataPath = "./data"
private def readFile(fileName: String): IO[List[String]] = {
val file = new File(dataPath, fileName)