Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
python: make it so that the host_load functions are only defined when the plugin...
[simgrid.git] / examples / python / plugin-host-load / plugin-host-load.py
index 3b6156c..9fce743 100644 (file)
@@ -6,7 +6,7 @@
 
 from argparse import ArgumentParser
 import sys
-from simgrid import Engine, Host, this_actor, Actor
+from simgrid import Engine, Host, this_actor, Actor, sg_host_load_plugin_init
 
 def parse():
     parser = ArgumentParser()
@@ -73,7 +73,8 @@ def change_speed():
 
 if __name__ == '__main__':
   args = parse()
-  Host.sg_host_load_plugin_init()
+  
+  sg_host_load_plugin_init()
   e = Engine(sys.argv)
   e.load_platform(args.platform)