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 *

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 *

Use a less pathetic method to retrieve the PyCEGUI dirname
MOD: Use a less pathetic method to retrieve the PyCEGUI dirname
