util/BitmapLibrary.py
changeset 1782 5b6ad7a7fd9d
parent 1736 7e61baa047f0
child 1881 091005ec69c4
equal deleted inserted replaced
1781:b112bfdde5cc 1782:5b6ad7a7fd9d
    24 
    24 
    25 import os
    25 import os
    26 
    26 
    27 import wx
    27 import wx
    28 
    28 
    29 #-------------------------------------------------------------------------------
    29 # -------------------------------------------------------------------------------
    30 #                            Library Structures
    30 #                            Library Structures
    31 #-------------------------------------------------------------------------------
    31 # -------------------------------------------------------------------------------
    32 
    32 
    33 BitmapLibrary = {}
    33 BitmapLibrary = {}
    34 BitmapFolders = []
    34 BitmapFolders = []
    35 
    35 
    36 #-------------------------------------------------------------------------------
    36 # -------------------------------------------------------------------------------
    37 #                             Library Helpers
    37 #                             Library Helpers
    38 #-------------------------------------------------------------------------------
    38 # -------------------------------------------------------------------------------
    39 
    39 
    40 
    40 
    41 def AddBitmapFolder(path):
    41 def AddBitmapFolder(path):
    42     if os.path.exists(path) and os.path.isdir(path) and path not in BitmapFolders:
    42     if os.path.exists(path) and os.path.isdir(path) and path not in BitmapFolders:
    43         BitmapFolders.append(path)
    43         BitmapFolders.append(path)