mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-07-21 06:20:25 -04:00
Added daemon mode
This commit is contained in:
parent
34b377bafe
commit
c6e26e7f7f
10 changed files with 46 additions and 14 deletions
16
nomadnet/ui/NoneUI.py
Normal file
16
nomadnet/ui/NoneUI.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import RNS
|
||||
import nomadnet
|
||||
import time
|
||||
|
||||
from nomadnet import NomadNetworkApp
|
||||
|
||||
class NoneUI:
|
||||
|
||||
def __init__(self):
|
||||
self.app = NomadNetworkApp.get_shared_instance()
|
||||
self.app.ui = self
|
||||
|
||||
RNS.log("Nomad Network started in daemon mode, all further messages are logged to "+str(self.app.logfilepath), RNS.LOG_INFO, _override_destination=True)
|
||||
|
||||
while True:
|
||||
time.sleep(1)
|
Loading…
Add table
Add a link
Reference in a new issue