1import os
2import sys
3
4class bcolors:
5    """
6    class for using colored text
7    """
8    HEADER = '\033[95m' #pink
9    OKBLUE = '\033[94m' #blue
10    OKGREEN = '\033[92m' #green
11    WARNING = '\033[93m' #yellow
12    FAIL = '\033[91m'    #red
13    ENDC = '\033[0m'    #white
14
15    def disable(self):
16        """
17        function to disable colored text
18        """
19        self.HEADER = ''
20        self.OKBLUE = ''
21        self.OKGREEN = ''
22        self.WARNING = ''
23        self.FAIL = ''
24        self.ENDC = ''
25
26encoding = sys.getfilesystemencoding()
27if hasattr(sys, 'frozen'):
28    install_dir = os.path.abspath(os.path.dirname(unicode(sys.executable, encoding)))
29install_dir = os.path.abspath(os.path.dirname(unicode(__file__, encoding)))
30try:
31    os.mkdir(install_dir + "/support")
32except:
33    pass
34