Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only validate existing sceneries when necessary #411

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoortho/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setuplogs():
]
)
log = logging.getLogger(__name__)
log.info(f"Setup logs: {log_dir}, level: {log_level}")
log.info(f"Setup logs: {log_dir}, log level: {log_level}")

import autoortho

Expand Down
7 changes: 4 additions & 3 deletions autoortho/autoortho.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ def __init__(self, cfg):
self.mount_threads = []

def mount_sceneries(self, blocking=True):
if not self.cfg.scenery_mounts:
log.warning(f"No installed sceneries detected. Exiting.")
return

self.mounts_running = True
for scenery in self.cfg.scenery_mounts:
t = threading.Thread(
Expand Down Expand Up @@ -318,9 +322,6 @@ def main():

stats = aostats.AOStats()

if not CFG.scenery_mounts:
log.warning(f"No installed sceneries detected. Exiting.")
sys.exit(0)

import flighttrack
ftrack = threading.Thread(
Expand Down