priyatam / pie

A minimalist staticsite builder and router
Other
5 stars 0 forks source link

Unable to access packages in nested folder structure #13

Closed priyatam closed 11 years ago

priyatam commented 11 years ago

Point config.yaml to path.to.local.templates or styles.

Traceback (most recent call last): File "./bake.py", line 282, in <module> main(_config, to_serve=to_serve) File "./bake.py", line 254, in main style, script, lambdas = load_recipes(config) File "./bake.py", line 107, in load_recipes lambdas = load_lambdas(config) File "./bake.py", line 72, in load_lambdas modules = [ import_module(re.sub("/", ".", config['lambdas'] + "." + recipe)) for recipe in _get_lambdas(config)] File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 30, in import_module raise TypeError("relative imports require the 'package' argument") TypeError: relative imports require the 'package' argument

ghost commented 11 years ago

Yup need to fix this. Temp fix -- in config.yaml lamdas: does_not_start_with_slash_or_dot