aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--confman.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/confman.py b/confman.py
index fefb7a3..304d3d4 100644
--- a/confman.py
+++ b/confman.py
@@ -184,6 +184,8 @@ class ProgrammableAction(Action):
Get limited environment execution.
This function could be overloaded to add some custom methods.
"""
+ options = self.config.options
+
def redirect(filename):
raise SymlinkForwarder("_"+filename)
@@ -193,15 +195,7 @@ class ProgrammableAction(Action):
def ignore():
raise IgnoreForwarder()
- exec_env = \
- {
- "options": self.config.options,
- "redirect": redirect,
- "empty": empty,
- "ignore": ignore,
- }
-
- return exec_env
+ return locals()
def check(self):
source = self.source_path()