- Rename will mark the resulting relation as readonly and subsequent updates, insert or deletes will actually copy the content

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@251 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2010-09-22 13:12:02 +00:00
parent 2073b4db4a
commit d63d0e78c0
3 changed files with 19 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ def load_relation(filename,defname=None):
f=filename.split('/')
if defname==None:
defname=f[len(f)-1].lower()
if (defname.endswith(".csv") or defname.endswith(".tlb")): #removes the extension
if defname.endswith(".csv"): #removes the extension
defname=defname[:-4]
try:
@@ -287,6 +287,5 @@ def main(files=[]):
sys.exit(0)
if __name__ == "__main__":
main()