Skip to content

Commit

Permalink
Merge pull request #12 from deoren/accept-env-var-config-file-path
Browse files Browse the repository at this point in the history
Add environment variable to list of locations to check for config files
  • Loading branch information
deoren authored Aug 8, 2018
2 parents 5a02974 + b53aee6 commit a024ad9
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit a024ad9

Please sign in to comment.