# HG changeset patch # User Teemu Piippo # Date 1558700418 -7200 # Node ID 2753aad7967846ae5f7e39ff1ec5acac70f03b17 # Parent 865cd526e8b67924039cd4b6a94a27f2b434bf47 now checks that paths are specified diff -r 865cd526e8b6 -r 2753aad79678 ldcheck.py --- a/ldcheck.py Fri May 24 14:18:31 2019 +0200 +++ b/ldcheck.py Fri May 24 14:20:18 2019 +0200 @@ -40,7 +40,9 @@ def check_library_paths(config): from sys import exit problems = False + have_paths = False for library_path in library_paths(config): + have_paths = True if not library_path.exists(): problems = True print(str.format( @@ -53,6 +55,9 @@ 'Library path {} is not a directory', library_path, )) + if not have_paths: + print('No LDraw path specified') + problems = True if problems: print('Please fix ldcheck.cfg') exit(1)