Commit 4ebaf7e4bca4de2bbd7a18443cc489f7babfd0f6
1 parent
6d64e4a1
Exists in
dev
supprimé quelques sys.path.append()
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/core/pyros_django/agent/Agent.py
... | ... | @@ -43,10 +43,9 @@ from django.conf import settings as djangosettings |
43 | 43 | ##sys.path.insert(0, os.path.abspath("src")) |
44 | 44 | ##sys.path.insert(0, "../src") |
45 | 45 | ##sys.path.insert(0, "src") |
46 | -# To avoid a "ModuleNotFoundError: No module named 'src'" | |
46 | +# To avoid a "ModuleNotFoundError: No module named 'dashboard'" | |
47 | 47 | sys.path.append("..") |
48 | -sys.path.append("../..") | |
49 | -sys.path.append("../../..") | |
48 | +# To avoid a "ModuleNotFoundError: No module named 'src'" | |
50 | 49 | sys.path.append("../../../..") |
51 | 50 | ##sys.path.append("src") |
52 | 51 | print("Starting with this sys.path", sys.path) | ... | ... |
src/core/pyros_django/agent/AgentDevice.py
... | ... | @@ -9,6 +9,7 @@ import time |
9 | 9 | sys.path.append("..") |
10 | 10 | from agent.Agent import Agent, extract_parameters |
11 | 11 | from common.models import AgentDeviceTelescopeStatus, get_or_create_unique_row_from_model |
12 | +sys.path.append("../../..") | |
12 | 13 | from devices_controller.devices_controller_concrete.device_controller_Gemini.telescope_controller_gemini import TelescopeControllerGEMINI |
13 | 14 | |
14 | 15 | ##log = L.setupLogger("AgentXTaskLogger", "AgentX") | ... | ... |