old_contents: import yaml
  import os
  
  base_loc = os.path.dirname(os.path.realpath(__file__))
  last_index = base_loc.rfind("/")
  base_loc = base_loc[0:last_index] + "/"
  
  config_filepath = base_loc + "config/config.yml"
  stream = open(config_filepath, "r")
  dictionary = yaml.load(stream)
  
  class Config(object):
  	def __init__(self, conf):
  		self.CONFIG = conf;
  
  	def __getattr__(self, query):
  		if query in self.CONFIG:
  			ans = self.CONFIG[query];
  			if "path" in query:
  				ans = base_loc + ans
  			return ans
  		else:
  			return None
  
  CONFIG = Config(dictionary)
  
new_contents: import yaml
  import os
  
  file_path = os.path.dirname(os.path.realpath(__file__))
  base_loc = os.path.abspath(os.path.join(file_path, os.pardir)) # parent directory of config directory
  config_filepath = os.path.join(base_loc, "config", "config.yml")
  stream = open(config_filepath, "r")
  dictionary = yaml.load(stream)
  
  class Config(object):
  	def __init__(self, conf):
  		self.CONFIG = conf;
  
  	def __getattr__(self, query):
  		if query in self.CONFIG:
  			ans = self.CONFIG[query];
  			if "path" in query:
  				ans = os.path.join(base_loc, ans)
  			return ans
  		else:
  			return None
  
  CONFIG = Config(dictionary)
  
subject: make path calculation use python libraries, to be more cross-platform compatible see #356