Joisco / KDP-Plan

1 stars 0 forks source link

Avoid hardcoded absolute paths :) #1

Open karol-depka opened 3 weeks ago

karol-depka commented 3 weeks ago

https://github.com/Joisco/KDP-Plan/blob/0be33f47f3b99c0f61241d1b5c0a8f029397f8a0/toke.py#L87

Use relative paths like something like ./data/something

karol-depka commented 3 weeks ago
 input_file = r"C:\Users\camth\Joseph\Josephing\Official Script\Compiled Text\compiled_books_2.txt" 

Also normally programmers avoid spaces in file/dir names :).

Joisco commented 2 weeks ago

That makes the code work on any computer right? Otherwise other people have to manually change the file paths, then do it again every time they have to change the dataset or chosen model.