Only run the daemon if this is the main module

main
Bob Mottram 2020-09-03 10:22:23 +01:00
parent 605be761ff
commit ed2aafc8cf
1 changed files with 19 additions and 18 deletions

View File

@ -1819,7 +1819,8 @@ if YTDomain:
if setTheme(baseDir, themeName):
print('Theme set to ' + themeName)
runDaemon(args.blogsinstance, args.mediainstance,
if __name__ == "__main__":
runDaemon(args.blogsinstance, args.mediainstance,
args.maxRecentPosts,
not args.nosharedinbox,
registration, args.language, __version__,