change to current file

This commit is contained in:
Shiina
2023-10-21 20:31:15 +08:00
parent d00c2c98a6
commit 5332c044ca

View File

@@ -22,7 +22,7 @@ class BaseAgent:
def init_action_lib(self, path=None, attribute_name='_description'):
if not path:
path = os.path.abspath(os.path.join(os.getcwd(), "..", "action_lib"))
path = os.path.abspath(os.path.join(__file__, "..", "..", "action_lib"))
sys.path.append(path)
files = glob.glob(path + "/*.py")
for file in files: