diff --git a/contrib_bots/run.py b/contrib_bots/run.py index 3bec299..3df9fc2 100755 --- a/contrib_bots/run.py +++ b/contrib_bots/run.py @@ -13,7 +13,7 @@ sys.path.insert(0, our_dir) from bot_lib import run_message_handler_for_bot def get_lib_module(bots_fn): - bots_fn = os.path.abspath(bots_fn) + bots_fn = os.path.realpath(bots_fn) if not os.path.dirname(bots_fn).startswith(os.path.join(our_dir, 'bots')): print('Sorry, we will only import code from contrib_bots/bots.') sys.exit(1)