From 3984ca017f62e18e4e3e2a3b93305e2f1cb63f68 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Tue, 9 Jan 2018 06:33:03 +0000 Subject: [PATCH] Replace cwd var with d --- brozzler/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/__init__.py b/brozzler/__init__.py index 46ebf29..ae58cf5 100644 --- a/brozzler/__init__.py +++ b/brozzler/__init__.py @@ -77,8 +77,8 @@ def behaviors(behaviors_dir=None): import os, yaml, string global _behaviors if _behaviors is None: - cwd = behaviors_dir or os.path.dirname(__file__) - behaviors_yaml = os.path.join(cwd, 'behaviors.yaml') + d = behaviors_dir or os.path.dirname(__file__) + behaviors_yaml = os.path.join(d, 'behaviors.yaml') with open(behaviors_yaml) as fin: _behaviors = yaml.load(fin) return _behaviors