diff --git a/chipathlon/workflow.py b/chipathlon/workflow.py index 587bf33f5f3882dd4e00ef7e8e837a40bcbbdf6d..42bb9bce146a9041532dfe4736062eb0a470fa88 100644 --- a/chipathlon/workflow.py +++ b/chipathlon/workflow.py @@ -181,7 +181,8 @@ class Workflow(object): # Load actual scripts for root, dirs, files in os.walk("%s/%s" % (os.path.dirname(os.path.realpath(__file__)), chipathlon.conf.job_scripts)): for f in files: - self._add_executable(f, os.path.join(root, f)) + if not os.path.splitext(f)[1] == '.pyc': + self._add_executable(f, os.path.join(root, f)) break # Handle necessary installed scripts for cmd in chipathlon.conf.system_commands: