Commit 5fd52e37cfc346f7a15095c13ac745130b28edc5
1 parent
6c81456d
Exists in
dev
bugfix import Agent pour AgentA,B,X
Showing
5 changed files
with
8 additions
and
6 deletions
Show diff stats
README.md
src/agent/Agent.py
src/agent/AgentA.py
... | ... | @@ -5,7 +5,8 @@ import sys |
5 | 5 | ##import utils.Logger as L |
6 | 6 | |
7 | 7 | ##from .Agent import Agent |
8 | -from Agent import Agent, extract_parameters | |
8 | +sys.path.append("..") | |
9 | +from agent.Agent import Agent, extract_parameters | |
9 | 10 | |
10 | 11 | |
11 | 12 | ##log = L.setupLogger("AgentXTaskLogger", "AgentX") | ... | ... |
src/agent/AgentB.py
... | ... | @@ -4,8 +4,8 @@ |
4 | 4 | import sys |
5 | 5 | ##import utils.Logger as L |
6 | 6 | |
7 | -##from .Agent import Agent | |
8 | -from Agent import Agent, extract_parameters | |
7 | +sys.path.append("..") | |
8 | +from agent.Agent import Agent, extract_parameters | |
9 | 9 | |
10 | 10 | |
11 | 11 | ##log = L.setupLogger("AgentXTaskLogger", "AgentX") | ... | ... |
src/agent/AgentX.py
... | ... | @@ -8,8 +8,8 @@ import sys |
8 | 8 | #from django.db import transaction |
9 | 9 | #from common.models import Command |
10 | 10 | |
11 | -##from .Agent import Agent | |
12 | -from Agent import Agent, extract_parameters | |
11 | +sys.path.append("..") | |
12 | +from agent.Agent import Agent, extract_parameters | |
13 | 13 | |
14 | 14 | |
15 | 15 | ... | ... |