Bugfix: PyLoT can now cope with databases named with number (e.g. year).

This commit is contained in:
Ludger Küperkoch 2017-05-24 10:19:50 +02:00
parent 74b19ac094
commit c954614544

View File

@ -2091,6 +2091,8 @@ class InputsTab(PropTab):
datapath = para.get('datapath') datapath = para.get('datapath')
rootpath = para.get('rootpath') rootpath = para.get('rootpath')
database = para.get('database') database = para.get('database')
if isinstance(database, int):
database = str(database)
path = os.path.join(os.path.expanduser('~'), rootpath, datapath, database) path = os.path.join(os.path.expanduser('~'), rootpath, datapath, database)
values = {"data/dataRoot": self.dataDirEdit.setText("%s" % path), values = {"data/dataRoot": self.dataDirEdit.setText("%s" % path),
"user/FullName": self.fullNameEdit.text(), "user/FullName": self.fullNameEdit.text(),