From 987e3494881c32bcebc37b3ed8e50cf4c5923267 Mon Sep 17 00:00:00 2001 From: "J.A.R.V.I.S" Date: Sun, 4 Jul 2021 09:26:10 -0600 Subject: [PATCH] Humans forgot about Linux pathing, fixed by checking if path[-1] is `jarvis` --- jarvis/data/unicode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/data/unicode.py b/jarvis/data/unicode.py index 9c634c6..01e8a3e 100644 --- a/jarvis/data/unicode.py +++ b/jarvis/data/unicode.py @@ -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}"