from PyQt4.QtCore import * 
from PyQt4.QtGui import *
import sys, os.path

def get_icon(name):
    return QIcon(QString.fromUtf8(repr(os.path.dirname(\
                       os.path.realpath(sys.argv[0]))).replace("\\\\","/")\
                       .replace("\'","")+"/pics/"+name))
def get_pixmap(name):
    return QPixmap(QString.fromUtf8(repr(os.path.dirname(\
                         os.path.realpath(sys.argv[0]))).replace("\\\\","/")\
                         .replace("\'","")+"/pics/"+name))

def get_conf(name):
    return QString.fromUtf8(repr(os.path.dirname(\
                         os.path.realpath(sys.argv[0]))).replace("\\\\","/")\
                         .replace("\'","")+"/config/"+name)
