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

Add environment variable to list of locations to check for config files #12

Merged
merged 2 commits into from
Aug 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mysql2sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
# https://stackoverflow.com/a/28231217
# https://www.blog.pythonlibrary.org/2016/03/24/python-201-ordereddict/
config_file_paths = OrderedDict({
'envvar_config_file_dir': os.environ.get('MYSQL2SQLITE_CONFIG_DIR', ''),
'cmdline_config_file_dir': cmdline_config_file_dir,
'local_config_file_dir': script_path,
'user_config_file_dir': os.path.expanduser('~/.config/mysql2sqlite'),
Expand All @@ -183,11 +184,11 @@

# Generate configuration setting options
log.debug(
"Passing in these general config file locations for evalution: %s",
"Passing in these general config file locations for evaluation: %s",
general_config_file_candidates)

log.debug(
"Passing in these query config file locations for evalution: %s",
"Passing in these query config file locations for evaluation: %s",
query_config_file_candidates)

# Generate configuration setting options
Expand Down