old_contents: import os
  import os.path
  
  # atrocious and unholy!
  def get_my_path():
      import fake
      return os.path.dirname(str(fake).split()[3][1:])
  
  libpath = os.path.abspath(get_my_path())
  #print "libpath =", libpath
  os.environ['PATH'] = libpath + ";" + os.environ['PATH']
  
  from PyCEGUI import *
  
new_contents: import os
  import os.path
  
  # atrocious and unholy!
  def get_my_path():
      import fake
      return os.path.dirname(os.path.abspath(fake.__file__))
  
  libpath = get_my_path()
  #print "libpath =", libpath
  os.environ['PATH'] = libpath + ";" + os.environ['PATH']
  
  from PyCEGUI import *
  
subject: Use a less pathetic method to retrieve the PyCEGUI dirname