[narval] fix recipes (when run from sources)
authorDavid Douard <david.douard@logilab.fr>
Wed, 14 May 2014 12:34:52 +0200
changeset 1516 cb61ef3751db
parent 1515 2a12802efe66
child 1517 b7c29a8b16ec
[narval] fix recipes (when run from sources) checkers must be imported first (required when run from sources) so apycotlib is importable
recipes.py
--- a/recipes.py	Wed May 14 11:34:12 2014 +0200
+++ b/recipes.py	Wed May 14 12:34:52 2014 +0200
@@ -14,8 +14,8 @@
                                  script=quick_script)
 
 full_script = u'''
+from checkers.apycot import python # trigger registration
 from apycotlib import registered, narvalactions as na
-from checkers.apycot import python # trigger registration
 from apycotlib import ERROR
 # `plan`
 
@@ -34,9 +34,8 @@
                                  script=full_script)
 
 scenario_runner_script = u'''
-import os
+from checkers.apycot.scenarios import ScriptRunner
 from apycotlib import narvalactions as na
-from checkers.apycot.scenarios import ScriptRunner
 
 class ScenarioChecker(ScriptRunner):
     id = "scenario_checker"