You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
configure_settings() that this issue shall focus on.
This issue deals with PATH, et al., variable name in a Pelican configuration settings (pelicanconf.py) file.
Relative Outside Subdirectory does not exist
Where the PATH is defined to 'content' and that (relative-type) 'content' subdirectory does NOT exist.
$ python -m pelican -D -s /tmp/pelicanconf.py CRITICAL Exception: `PATH` object in /tmp/pelicanconf.py is undefined. You need __init__.py:696 to specify a path containing the content (see pelican --help for more information)
An ERROR should have said: content subdirectory (as defined in 'PATH' variable) does not exist.
Undefined PATH
Where the PATH variable is undefined in pelicanconf.py
$ python -m pelican -s /tmp/pelicanconf.py -D content CRITICAL Exception: `PATH` object in /tmp/pelicanconf.py is undefined. You need __init__.py:696 to specify a path containing the content (see pelican --help for more information)
A WARNING should have said: 'PATH' variable is undefined; using 'content' as a default.
Platform
Click to expand
Platform
OS version and name: Linux 6.1.0-21-amd64 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
Issue
This issue is broken off of issue #3357 due to entirely different scoping effort of the following functions within
settings.py
/test_settings.py
:load_source()
addressed by Many new unit tests for configuration settings file (pelicanconf.py) (#3357) #3368 andconfigure_settings()
that this issue shall focus on.This issue deals with
PATH
, et al., variable name in a Pelican configuration settings (pelicanconf.py
) file.Relative Outside Subdirectory does not exist
Where the
PATH
is defined to 'content' and that (relative-type) 'content' subdirectory does NOT exist.An ERROR should have said:
content
subdirectory (as defined in 'PATH' variable) does not exist.Undefined
PATH
Where the
PATH
variable is undefined inpelicanconf.py
A WARNING should have said: 'PATH' variable is undefined; using 'content' as a default.
Platform
Click to expand
Platform
The text was updated successfully, but these errors were encountered: