old_contents: import json
  
  from constants import TEST_ACCOUNT
  
  _retriever = {
      'account': TEST_ACCOUNT,
  }
  
  
  def init(account_number, key_file='~/.stockfighter/keys.json'):
      _retriever['account'] = account_number
      if 'api_key' not in _retriever:
          with open(key_file) as f:
              _retriever['api_key'] = json.load(f)['api_key']
  
  
  def reset():
      _retriever['account'] = TEST_ACCOUNT
  
  
  def get(key):
      return _retriever[key]
  
  
  def set_(key, value):
      if key in _retriever:
          raise ValueError('Key {} already in config object'.format(key))
  
      _retriever[key] = value
  
new_contents: import json
  import os
  
  from constants import TEST_ACCOUNT
  
  DEFAULT_KEY_FILE = '{}/.stockfighter/keys.json'.format(os.getenv('HOME'))
  _retriever = {
      'account': TEST_ACCOUNT,
  }
  
  
  def init(account_number=TEST_ACCOUNT, key_file=DEFAULT_KEY_FILE):
      _retriever['account'] = account_number
      if 'api_key' not in _retriever:
          with open(key_file) as f:
              _retriever['api_key'] = json.load(f)['api_key']
  
  
  def reset():
      _retriever['account'] = TEST_ACCOUNT
  
  
  def get(key):
      return _retriever[key]
  
  
  def set_(key, value):
      if key in _retriever:
          raise ValueError('Key {} already in config object'.format(key))
  
      _retriever[key] = value
  
subject: Update file path