Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigurationGathering.py: Change double quotes to single quotes #6073

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions coalib/settings/ConfigurationGathering.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,18 +350,18 @@ def get_config_directory(section):

Given an empty section:

>>> section = Section("name")
>>> section = Section('name')

The configuration directory is not defined and will therefore fallback to
the current directory:

>>> get_config_directory(section) == os.path.abspath(".")
>>> get_config_directory(section) == os.path.abspath('.')
True

If the ``files`` setting is given with an originating coafile, the directory
of the coafile will be assumed the configuration directory:

>>> section.append(Setting("files", "**", origin="/tmp/.coafile"))
>>> section.append(Setting('files', '**', origin='/tmp/.coafile'))
>>> get_config_directory(section) == os.path.abspath('/tmp/')
True

Expand All @@ -382,7 +382,7 @@ def get_config_directory(section):

If no section is given, the current directory is returned:

>>> get_config_directory(None) == os.path.abspath(".")
>>> get_config_directory(None) == os.path.abspath('.')
True

To summarize, the config directory will be chosen by the following
Expand Down