From 2ac6c1faa36dd1ff455c2ba2aeb8be60027c836b Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 12 Dec 2011 10:44:52 +0100 Subject: [PATCH] Allow includes from the local directory by default. Will build in a flag in the future to be able to disallow this. --- bin/rqgenload | 3 +++ bin/rqinfo | 3 +++ bin/rqworker | 3 +++ 3 files changed, 9 insertions(+) diff --git a/bin/rqgenload b/bin/rqgenload index 537c82d4..674889c4 100755 --- a/bin/rqgenload +++ b/bin/rqgenload @@ -11,6 +11,9 @@ def parse_args(): return (opts, args, parser) def main(): + import sys + sys.path.insert(0, '.') + opts, args, parser = parse_args() use_redis() diff --git a/bin/rqinfo b/bin/rqinfo index 368be506..462741b7 100755 --- a/bin/rqinfo +++ b/bin/rqinfo @@ -137,6 +137,9 @@ def parse_args(): def main(): + import sys + sys.path.insert(0, '.') + args = parse_args() # Setup connection to Redis diff --git a/bin/rqworker b/bin/rqworker index b4d20242..5eb3cd8b 100755 --- a/bin/rqworker +++ b/bin/rqworker @@ -53,6 +53,9 @@ def parse_args(): def main(): + import sys + sys.path.insert(0, '.') + args = parse_args() setup_loghandlers(args)