using single separator... on windows seems to be using the unix one.. boh
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@200 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
a584c158dd
commit
dcc5d977b4
@ -156,7 +156,7 @@ class Ui_Form(object):
|
|||||||
filename = QtGui.QFileDialog.getOpenFileName(None,QtGui.QApplication.translate("Form", "Load Relation"),"",QtGui.QApplication.translate("Form", "Relations (*.csv);;Old Relations (*.tlb);;Text Files (*.txt);;All Files (*)"))
|
filename = QtGui.QFileDialog.getOpenFileName(None,QtGui.QApplication.translate("Form", "Load Relation"),"",QtGui.QApplication.translate("Form", "Relations (*.csv);;Old Relations (*.tlb);;Text Files (*.txt);;All Files (*)"))
|
||||||
|
|
||||||
#Default relation's name
|
#Default relation's name
|
||||||
f=str(filename.toUtf8()).split(os.sep) #Split the full path
|
f=str(filename.toUtf8()).split('/') #Split the full path
|
||||||
defname=f[len(f)-1].lower() #Takes only the lowercase filename
|
defname=f[len(f)-1].lower() #Takes only the lowercase filename
|
||||||
if len(defname)==0:
|
if len(defname)==0:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user