mirror of
https://github.com/OS-Copilot/OS-Copilot.git
synced 2026-05-05 03:00:15 -04:00
change to current file
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user