From 837af6666b2cba90aa9c3eaa4e841bd2cd993b58 Mon Sep 17 00:00:00 2001 From: pranav-1711 Date: Sun, 20 Mar 2022 18:39:13 +0530 Subject: [PATCH] Distributed global files and imports. --- dist/ba_root/mods/custom_hooks.py | 2 +- dist/ba_root/mods/playersData/pdata.py | 2 +- dist/ba_root/mods/{ => tools}/bcs_plugin.py | 0 dist/ba_root/mods/{ => tools}/file_handle.py | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename dist/ba_root/mods/{ => tools}/bcs_plugin.py (100%) rename dist/ba_root/mods/{ => tools}/file_handle.py (100%) diff --git a/dist/ba_root/mods/custom_hooks.py b/dist/ba_root/mods/custom_hooks.py index 4a960c0..0ba577e 100644 --- a/dist/ba_root/mods/custom_hooks.py +++ b/dist/ba_root/mods/custom_hooks.py @@ -84,7 +84,7 @@ def bootstraping(): from plugins import color_explosion color_explosion.enable() if settings["ballistica_web"]["enable"]: - import bcs_plugin + from plugins import bcs_plugin bcs_plugin.enable() # import features diff --git a/dist/ba_root/mods/playersData/pdata.py b/dist/ba_root/mods/playersData/pdata.py index d25a716..9d08479 100644 --- a/dist/ba_root/mods/playersData/pdata.py +++ b/dist/ba_root/mods/playersData/pdata.py @@ -11,7 +11,7 @@ import os import _thread from serverData import serverdata -from file_handle import OpenJson +from tools.file_handle import OpenJson import _ba # pylint: disable=import-error diff --git a/dist/ba_root/mods/bcs_plugin.py b/dist/ba_root/mods/tools/bcs_plugin.py similarity index 100% rename from dist/ba_root/mods/bcs_plugin.py rename to dist/ba_root/mods/tools/bcs_plugin.py diff --git a/dist/ba_root/mods/file_handle.py b/dist/ba_root/mods/tools/file_handle.py similarity index 100% rename from dist/ba_root/mods/file_handle.py rename to dist/ba_root/mods/tools/file_handle.py