From ae62a674bd58992b0786d9fe5b1086b605d1fe3c Mon Sep 17 00:00:00 2001 From: huakim <92579808+huakim@users.noreply.github.com> Date: Mon, 20 May 2024 18:37:16 +0300 Subject: [PATCH] Update __init__.py --- py2pack/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py2pack/__init__.py b/py2pack/__init__.py index 9eb490f..6c7f7f9 100755 --- a/py2pack/__init__.py +++ b/py2pack/__init__.py @@ -98,9 +98,9 @@ def _get_template_dirs(): is important. The first found template from the first found dir wins!""" return filter(lambda x: os.path.exists(x), [ # user dir - os.path.join(os.path.expanduser('~'), '.py2pack/templates'), + os.path.join(os.path.expanduser('~'), '.py2pack', 'templates'), # system wide dir - '/usr/share/py2pack/templates', + os.path.join('/', 'usr', 'share', 'py2pack', 'templates'), # usually inside the site-packages dir os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates'), ])