Check whether file settings.toml exists.
This commit is contained in:
parent
4be8dad823
commit
ee07600546
2 changed files with 8 additions and 4 deletions
jabbercard
|
@ -48,6 +48,10 @@ if __name__ == 'jabbercard.__main__':
|
|||
|
||||
# Configure settings file
|
||||
file_settings = os.path.join(directory_settings, 'settings.toml')
|
||||
if not os.path.exists(file_settings):
|
||||
directory_configs = os.path.join(directory, 'configs')
|
||||
file_settings_empty = os.path.join(directory_configs, 'settings.toml')
|
||||
shutil.copyfile(file_settings_empty, file_settings)
|
||||
data_settings = Toml.open_file_toml(file_settings)
|
||||
|
||||
# Configure account
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# An account to connect FASI to the XMPP network
|
||||
# JabberCard configuration file
|
||||
|
||||
[account]
|
||||
alias = "FASI" # Alias
|
||||
xmpp = "" # Jabber ID
|
||||
pass = "" # Password
|
||||
alias = "JabberCard" # Alias
|
||||
xmpp = "" # Jabber ID
|
||||
pass = "" # Password
|
||||
|
||||
[brand]
|
||||
name = "XMPP" # Name of brand
|
||||
|
|
Loading…
Add table
Reference in a new issue