From 002aa1d05d09ddb6a7e116ff9b0f7fed33f4552d Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 28 Feb 2019 08:13:30 +0100 Subject: o Sort SCH_FILES. --- src/ee/tools/kicad_mkdeps.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ee/tools/kicad_mkdeps.py b/src/ee/tools/kicad_mkdeps.py index 3094232..0973416 100644 --- a/src/ee/tools/kicad_mkdeps.py +++ b/src/ee/tools/kicad_mkdeps.py @@ -1,4 +1,3 @@ -from __future__ import print_function import sys import argparse import ee.kicad as kicad @@ -21,8 +20,8 @@ def work(args): p("endif") p("") p("SCH_FILES =") - for s in sch.schematics: - p("SCH_FILES += {}".format(s.path)) + for path in sorted([s.path for s in sch.schematics]): + p("SCH_FILES += {}".format(path)) if args.pcb: if args.gerber: -- cgit v1.2.3