Humans forgot about Linux pathing, fixed by checking if path[-1] is jarvis

This commit is contained in:
J.A.R.V.I.S 2021-07-04 09:26:10 -06:00
parent 64e93fd40f
commit 987e349488

View file

@ -3,7 +3,7 @@ from os import getcwd
from os import sep as s
json_path = getcwd()
if "jarvis" not in json_path:
if "jarvis" != json_path.split(s)[-1]:
json_path += s + "jarvis"
json_path += f"{s}data{s}json{s}"