Skip to content

Instantly share code, notes, and snippets.

View mfairclough's full-sized avatar

Matt Fairclough mfairclough

View GitHub Profile
import os
import os.path
import re
import subprocess
import sys
class TerragenExe:
exe_folder = ''
exe_filename = ''
graph TB

    subgraph Legend
        LegendLegacy("Legacy environment (deprecated). \n .lic file in either the program folder \n or another folder specified by an environment variable.\n Can be overridden by a .lic in the Application Data folder \n if it is 'newer' or for an upgraded product"):::LegacyPath
        LegendGreen(Single user environment. \n .lic file in Applcation Data folder \n installed using 'Add Key File' in GUI. \n This .lic can be updated automatically if connected to the internet.):::GreenPath
        LegendServer(With a license server. \n Servers are queried only if there is no valid local license.):::ServerPath
    end

    subgraph GetLocal[Get License From Key File]