Store all user data in a folder
This commit is contained in:
parent
f92d6fab53
commit
d3d579840a
19 changed files with 84 additions and 151 deletions
|
@ -17,7 +17,7 @@ def linkgen(ficno,output="output.html",local=False):
|
|||
else:
|
||||
ficnostring = str(ficno)
|
||||
# open the file
|
||||
ficfile = "originalsmeta." + ficnostring
|
||||
ficfile = "files.originalsmeta." + ficnostring
|
||||
fileread = import_module(ficfile)
|
||||
# open translation file if there is one
|
||||
try:
|
||||
|
@ -28,7 +28,7 @@ def linkgen(ficno,output="output.html",local=False):
|
|||
translationstring = "0" + str(fileread.translation)
|
||||
else:
|
||||
translationstring = str(fileread.translation)
|
||||
translationfile = "translationsmeta." + translationstring
|
||||
translationfile = "files.translationsmeta." + translationstring
|
||||
transread = import_module(translationfile)
|
||||
except:
|
||||
pass
|
||||
|
@ -259,7 +259,7 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
|
|||
else:
|
||||
ficnostring = str(ficno)
|
||||
# open the file
|
||||
ficfile = "originalsmeta." + ficnostring
|
||||
ficfile = "files.originalsmeta." + ficnostring
|
||||
fileread = import_module(ficfile)
|
||||
# open translation file if there is one
|
||||
try:
|
||||
|
@ -270,7 +270,7 @@ def ficgen(ficno,unique=False,output="output.html",local=False):
|
|||
translationstring = "0" + str(fileread.translation)
|
||||
else:
|
||||
translationstring = str(fileread.translation)
|
||||
translationfile = "translationsmeta." + translationstring
|
||||
translationfile = "files.translationsmeta." + translationstring
|
||||
transread = import_module(translationfile)
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue