Commit 5fd52e37cfc346f7a15095c13ac745130b28edc5

Authored by Etienne Pallier
1 parent 6c81456d
Exists in dev

bugfix import Agent pour AgentA,B,X

README.md
... ... @@ -71,7 +71,7 @@ Date: 22/03/2019
71 71  
72 72 Author: E. Pallier
73 73  
74   -VERSION: 0.20.26
  74 +VERSION: 0.20.27
75 75  
76 76 Comment: mode "test" (-t) géré (= mode simulateur)
77 77  
... ...
src/agent/Agent.py
... ... @@ -1296,3 +1296,4 @@ if __name__ == "__main__":
1296 1296 agent.setSimulatorMode(TEST_MODE)
1297 1297 print(agent)
1298 1298 agent.run()
  1299 +
1299 1300 \ No newline at end of file
... ...
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  
... ...