1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-25 09:51:15 +02:00

Now shows what changed to trigger an openscad invocation in cyan.

This commit is contained in:
Chris Palmer
2021-02-09 23:32:53 +00:00
parent 26f1338ca2
commit 4f9729cf86
4 changed files with 9 additions and 6 deletions

View File

@@ -20,6 +20,7 @@
# Set command line options from enviroment variables and check if they have changed
import json, os, deps
from colorama import Fore, init
def check_options(dir = '.'):
global options, options_mtime
@@ -37,7 +38,7 @@ def check_options(dir = '.'):
def have_changed(changed, target):
if not changed and deps.mtime(target) < options_mtime:
return "command line options changed"
return Fore.CYAN + "command line options changed" + Fore.WHITE
return changed
def list():