Skip to content

Commit

Permalink
forgot indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jun 9, 2016
1 parent 38bebbb commit 997d75b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions iceprod/core/exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,14 +609,14 @@ def run_module(cfg, env, module):
if module['env_shell']:
env_shell = module['env_shell'].split()
if not os.path.exists(env_shell[0]):
# get script to run
c = dataclasses.Class()
c['src'] = env_shell[0]
c['name'] = os.path.basename(c['src'])
setupClass(env,c)
if c['name'] not in env['classes']:
raise Exception('Failed to install class %s'%c['name'])
env_shell[0] = [env['classes'][c['name']]]
# get script to run
c = dataclasses.Class()
c['src'] = env_shell[0]
c['name'] = os.path.basename(c['src'])
setupClass(env,c)
if c['name'] not in env['classes']:
raise Exception('Failed to install class %s'%c['name'])
env_shell[0] = [env['classes'][c['name']]]
module['env_shell'] = env_shell

logger.warn('running module \'%s\' with class %s',module['name'],
Expand Down

0 comments on commit 997d75b

Please sign in to comment.