From d9ff7493922c262a3fdb5b33177cbdfd46dbe033 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 8 Aug 2021 12:58:11 -0400 Subject: [PATCH] move vars to the top --- build/examples.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/build/examples.py b/build/examples.py index 916a90aac..7ecb73577 100755 --- a/build/examples.py +++ b/build/examples.py @@ -6,9 +6,20 @@ import subprocess # script to keep the examples in sync [fry 210808] + # when changes are found, stop and open a visual diff tool to examine DIFF_THE_MODS = False +# contains Basics, Demos, Topics +EXAMPLES_DIR = os.path.realpath('../../processing-docs/content/examples') + +# contains Basic Examples, Topic Examples +P4_DOCS_REPO = os.path.realpath('../../processing-other/website/content/examples') + + +# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + # location of the Kaleidoscope diff command KSDIFF = '/usr/local/bin/ksdiff' @@ -22,12 +33,6 @@ if os.path.exists(KSDIFF): else: DIFF_TOOL = FILE_MERGE -# contains Basics, Demos, Topics -EXAMPLES_DIR = os.path.realpath('../../processing-docs/content/examples') - -# contains Basic Examples, Topic Examples -P4_DOCS_REPO = os.path.realpath('../../processing-other/website/content/examples') - def run_command(args): # process = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE)