Merge branch 'test_import' into development
Conflicts: gui/builtinContextMenus/amount.py gui/characterEditor.py gui/itemStats.py
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# ===============================================================================
|
||||
# =============================================================================
|
||||
# Copyright (C) 2010 Diego Duclos
|
||||
#
|
||||
# This file is part of pyfa.
|
||||
@@ -15,7 +15,7 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with pyfa. If not, see <http://www.gnu.org/licenses/>.
|
||||
# ===============================================================================
|
||||
# =============================================================================
|
||||
|
||||
import cStringIO
|
||||
import os.path
|
||||
@@ -86,11 +86,11 @@ class BitmapLoader():
|
||||
sbuf = cStringIO.StringIO(img_data)
|
||||
return wx.ImageFromStream(sbuf)
|
||||
except KeyError:
|
||||
print "Missing icon file from zip: {0}".format(path)
|
||||
print("Missing icon file from zip: {0}".format(path))
|
||||
else:
|
||||
path = config.getPyfaPath('imgs' + os.sep + location + os.sep + filename)
|
||||
|
||||
if os.path.exists(path):
|
||||
return wx.Image(path)
|
||||
else:
|
||||
print "Missing icon file: {0}".format(path)
|
||||
print("Missing icon file: {0}".format(path))
|
||||
|
||||
Reference in New Issue
Block a user