move vars to the top

This commit is contained in:
Ben Fry
2021-08-08 12:58:11 -04:00
parent cb4dfcb9fc
commit d9ff749392

View File

@@ -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)