text: import os
  import json
  
  ## Config
  CONFIG_OPTIONS = {}         # This'll be populated on import
  CONFIG_NAME = "config.json"	# The name of the config file
  DIRS_FROM_ROOT = 1			# How many directories away this script is from the root
  
  
  def get_root_path():
  	## -1 includes this script itself in the realpath
  	return os.sep.join(os.path.realpath(__file__).split(os.path.sep)[:(-1 - DIRS_FROM_ROOT)])
  
  
  def load_json(path):
      with open(path) as fd:
          return json.load(fd)
  
  def load_json_from_root(name):
      return load_json(os.sep.join([get_root_path(), name]))
  
  def load_config():
  	return load_json_from_root(CONFIG_NAME)
  	## return load_json(os.sep.join([get_root_path(), CONFIG_NAME]))
  
  
  CONFIG_OPTIONS = load_config()
  