mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-07-21 14:28:55 -04:00
Create examples directory on init
This commit is contained in:
parent
a4f5b28707
commit
681295a818
3 changed files with 12 additions and 0 deletions
|
@ -111,6 +111,7 @@ class NomadNetworkApp:
|
|||
self.pagespath = self.configdir+"/storage/pages"
|
||||
self.filespath = self.configdir+"/storage/files"
|
||||
self.cachepath = self.configdir+"/storage/cache"
|
||||
self.examplespath = self.configdir+"/examples"
|
||||
|
||||
self.downloads_path = os.path.expanduser("~/Downloads")
|
||||
|
||||
|
@ -169,6 +170,9 @@ class NomadNetworkApp:
|
|||
else:
|
||||
RNS.log("Could not load config file, creating default configuration file...")
|
||||
self.createDefaultConfig()
|
||||
if not os.path.isdir(self.examplespath):
|
||||
os.makedirs(self.examplespath)
|
||||
|
||||
self.firstrun = True
|
||||
|
||||
if os.path.isfile(self.identitypath):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue