mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-07 05:52:27 -04:00
Replace cwd var with d
This commit is contained in:
parent
dacfba330c
commit
3984ca017f
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ def behaviors(behaviors_dir=None):
|
||||||
import os, yaml, string
|
import os, yaml, string
|
||||||
global _behaviors
|
global _behaviors
|
||||||
if _behaviors is None:
|
if _behaviors is None:
|
||||||
cwd = behaviors_dir or os.path.dirname(__file__)
|
d = behaviors_dir or os.path.dirname(__file__)
|
||||||
behaviors_yaml = os.path.join(cwd, 'behaviors.yaml')
|
behaviors_yaml = os.path.join(d, 'behaviors.yaml')
|
||||||
with open(behaviors_yaml) as fin:
|
with open(behaviors_yaml) as fin:
|
||||||
_behaviors = yaml.load(fin)
|
_behaviors = yaml.load(fin)
|
||||||
return _behaviors
|
return _behaviors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue