From 301ec35a60f621955ed48c17a438f70a44259abb Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 25 Oct 2018 10:14:19 -0400 Subject: [PATCH] test alternative path --- recyclingplant/recyclingplant.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/recyclingplant/recyclingplant.py b/recyclingplant/recyclingplant.py index 5a93abf..2b08633 100644 --- a/recyclingplant/recyclingplant.py +++ b/recyclingplant/recyclingplant.py @@ -4,7 +4,7 @@ import random from redbot.core import bank from redbot.core import commands -from redbot.core.data_manager import cog_data_path +from redbot.core.data_manager import cog_data_path, bundled_data_path from typing import Any Cog: Any = getattr(commands, "Cog", object) @@ -15,8 +15,11 @@ class RecyclingPlant(Cog): def __init__(self, bot): self.bot = bot - self.path = str(cog_data_path(self)).replace("\\", "/") - self.junk_path = self.path + "/bundled_data/junk.json" + # self.path = str(cog_data_path(self)).replace("\\", "/") + # self.junk_path = self.path + "/bundled_data/junk.json" + self.path = str(bundled_data_path(self)).replace("\\", "/") + print(self.path) + self.junk_path = self.path + "/junk.json" with open(self.junk_path) as json_data: self.junk = json.load(json_data)