Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huakim authored May 20, 2024
1 parent 6e4abea commit ae62a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py2pack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
])
Expand Down

0 comments on commit ae62a67

Please sign in to comment.