Move get_template_path function to pakcage utils

Moved out the function from testing package to project main package.
This commit is contained in:
David Paz 2022-07-15 14:49:26 +02:00
parent 51e5b74f80
commit f072bb622f
No known key found for this signature in database
GPG key ID: 6600CC47B1C1B063
4 changed files with 8 additions and 7 deletions

View file

@ -14,8 +14,3 @@ def get_resource_path(path):
def git_commit(*args, **kwargs):
cmd = ('git', 'commit', '--no-gpg-sign', '--no-verify', '--no-edit', *args)
subprocess.check_call(cmd, **kwargs)
def get_template_path(path):
parent_dir = os.path.abspath(os.path.join(TESTING_DIR, os.pardir))
return os.path.join(parent_dir, 'templates', path)