Added file name to fit import

This commit is contained in:
HomeWorld
2011-01-16 18:22:49 +02:00
parent d5f5a1ea44
commit dc9f07367c
2 changed files with 12 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ from service.damagePattern import DamagePattern
from service.character import Character
import threading
import wx
import os.path
class FitBackupThread(threading.Thread):
def __init__(self, path, callback):
@@ -508,8 +509,10 @@ class Fit(object):
thread.start()
def importFit(self, path):
filename = os.path.split(path)[1]
f = file(path)
type, fits = eos.types.Fit.importAuto(f.read())
type, fits = eos.types.Fit.importAuto(f.read(), filename)
return fits