Skip to content

Commit

Permalink
feat: add regex to parse options from the cuesubmit config file
Browse files Browse the repository at this point in the history
  • Loading branch information
KernAttila committed Mar 28, 2023
1 parent 4f9f747 commit 691250c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cuesubmit/cuesubmit/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
'https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html#render-options'

REGEX_CUETOKEN = r'^#.*#$' #FRAME_START#
REGEX_COMMAND_OPTIONS = (r'(?P<command_flag>-+\w*)?' # -optionFlag
r'(?P<hidden>\~)?' # -hiddenFlag~
r'\s?'
r'({'
r'(?P<mandatory>\!)?' # {!Mandatory argument}
r'(?P<label>[^{}\*\/\!]+)' # {Nice name}
r'(?P<browsable>\*?\/?)' # {browseFile*} or {browseFolder/}
r'})?')

DIR_PATH = os.path.dirname(__file__)

Expand Down

0 comments on commit 691250c

Please sign in to comment.