[Core] Added relative_path parameter to json helpers

Since these helpers will mostly be used by packages, it's important to make sure that the data they create stays contained inside them. This also brings the additional benefit of being able to manipulate data inside a package without knowing the name of the package's folder itself
This commit is contained in:
Twentysix
2017-04-30 05:12:00 +02:00
parent ba9d4b7f0f
commit 51ce2d82d6
3 changed files with 30 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ def init_events(bot, cli_flags):
failed.append(package)
if failed:
bot.save_packages_status()
await bot.save_packages_status()
if packages:
print("Loaded packages: " + ", ".join(packages))