Skip to content

Commit

Permalink
docstrings for directives
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Apr 11, 2020
1 parent fbac689 commit 54b7839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ahk/script.py
Expand Up @@ -78,6 +78,8 @@ def __init__(self, executable_path: str = "", directives=None, **kwargs):
If environment variable not present, tries to look for 'AutoHotkey.exe' or 'AutoHotkeyA32.exe' with shutil.which
:param directives: additional AHK directives to add to all rendered scripts
:raises ExecutableNotFound: if AHK executable cannot be found or the specified file does not exist
"""
self.executable_path = _resolve_executable_path(executable_path)
Expand All @@ -91,7 +93,7 @@ def render_template(self, template_name, directives=None, blocking=True, **kwarg
Renders a given jinja template and returns a string of script text
:param template_name: the name of the jinja template to render
:param directives: additional AHK directives to add to all scripts
:param directives: additional AHK directives to add to the resulting script
:param blocking: whether the template should be rendered to block (use #Persistent directive)
:param kwargs: keywords passed to template rendering
:return: An AutoHotkey script as a string
Expand Down

0 comments on commit 54b7839

Please sign in to comment.