Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add missing include for smpi_options
[simgrid.git] / examples / python / exec-basic / exec-basic.py
index fa001b9..60e0bf6 100644 (file)
@@ -3,8 +3,8 @@
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the license (GNU LGPL) which comes with this package.
 
+from simgrid import Actor, Engine, Host, this_actor
 import sys
-from simgrid import *
 
 
 def executor():
@@ -34,7 +34,7 @@ i = 0
 if "--" in sys.argv:
     i = sys.argv.index("--")
 e = Engine(sys.argv[0:i])
-e.load_platform(sys.argv[i+1])
+e.load_platform(sys.argv[i + 1])
 
 Actor.create("executor", Host.by_name("Tremblay"), executor)
 Actor.create("privileged", Host.by_name("Tremblay"), privileged)