- Checks if the given files are really files
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@226 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
ad84f402d5
commit
65411234a0
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import os.path
|
||||||
import getopt
|
import getopt
|
||||||
from relational import relation, parser
|
from relational import relation, parser
|
||||||
version="0.11"
|
version="0.11"
|
||||||
@ -74,7 +75,6 @@ if __name__ == "__main__":
|
|||||||
elif i[0]=='-c':
|
elif i[0]=='-c':
|
||||||
x11=False
|
x11=False
|
||||||
|
|
||||||
|
|
||||||
if x11:
|
if x11:
|
||||||
import sip
|
import sip
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
@ -91,6 +91,9 @@ if __name__ == "__main__":
|
|||||||
ui.setupUi(Form)
|
ui.setupUi(Form)
|
||||||
|
|
||||||
for i in range(len(files)):
|
for i in range(len(files)):
|
||||||
|
if not os.path.isfile(files[i]):
|
||||||
|
print >> sys.stderr, "%s is not a file" % files[i]
|
||||||
|
printhelp(12)
|
||||||
f=files[i].split('/')
|
f=files[i].split('/')
|
||||||
defname=f[len(f)-1].lower()
|
defname=f[len(f)-1].lower()
|
||||||
if (defname.endswith(".csv") or defname.endswith(".tlb")): #removes the extension
|
if (defname.endswith(".csv") or defname.endswith(".tlb")): #removes the extension
|
||||||
|
Loading…
x
Reference in New Issue
Block a user