Permalink
Browse files

Perform Pyon import only when needed

Allows eeagent to be used when pyon not available
  • Loading branch information...
1 parent c53412f commit 404b7fa02d80f0cddffcd290476cfbb22b538eea @labisso labisso committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 eeagent/execute.py
View
2 eeagent/execute.py
@@ -5,7 +5,6 @@
import simplejson as json
from subprocess import check_call, CalledProcessError
from pidantic.supd.pidsupd import SupDPidanticFactory
-from pidantic.pyon.pidpyon import PyonPidanticFactory
from eeagent.eeagent_exceptions import EEAgentParameterException
from eeagent.util import _set_param_or_default
@@ -189,6 +188,7 @@ def __init__(self, eeagent_cfg, pyon_container, log=logging):
self._working_dir = eeagent_cfg.launch_type.persistence_directory
self._known_pws = {}
+ from pidantic.pyon.pidpyon import PyonPidanticFactory
self._factory = PyonPidanticFactory(pyon_container=pyon_container,
name=self._eename, directory=self._working_dir, log=self.log)

0 comments on commit 404b7fa

Please sign in to comment.