Bugfix: PyLoT can now cope with databases named with number (e.g. year).
This commit is contained in:
parent
74b19ac094
commit
c954614544
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user