|
@@ -2,10 +2,20 @@ from intelligine.core.Context import Context
|
2
|
2
|
from intelligine.synergy.Simulation import Simulation
|
3
|
3
|
from intelligine.display.Pygame import Pygame
|
4
|
4
|
from intelligine.display.pygame.visualisation import visualisation as pygame_visualisation
|
5
|
|
-#from intelligine.sandbox.colored.colors_colonys import collections
|
6
|
|
-# TODO: influencer avec argument python
|
7
|
|
-from intelligine.sandbox.exploration.collections import collections
|
|
5
|
+import argparse
|
8
|
6
|
|
|
7
|
+parser = argparse.ArgumentParser(description='Select sandbox.')
|
|
8
|
+parser.add_argument('sandbox', metavar='sandbox', type=str, nargs=1,
|
|
9
|
+ help='Name of sandbox: ' + ', '.join(['exploration', 'multi']))
|
|
10
|
+
|
|
11
|
+args = parser.parse_args()
|
|
12
|
+
|
|
13
|
+if 'multi' in args.sandbox:
|
|
14
|
+ from intelligine.sandbox.colored.colors_colonys import collections
|
|
15
|
+elif 'exploration' in args.sandbox:
|
|
16
|
+ from intelligine.sandbox.exploration.collections import collections
|
|
17
|
+else:
|
|
18
|
+ parser.parse_args(['-h'])
|
9
|
19
|
|
10
|
20
|
config = {
|
11
|
21
|
'app': {
|