Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions hook-pyexcelerate.Writer.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# -----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is in the file COPYING.txt, distributed with this software.
# -----------------------------------------------------------------------------

import os
from PyInstaller.hooks.hookutils import exec_statement

template_path = exec_statement(
"from pyexcelerate.Writer import _TEMPLATE_PATH as tp; print tp"
)
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

datas = [(os.path.join(template_path, "*"), os.path.join("pyexcelerate", "templates"))]
from PyInstaller.utils.hooks import collect_data_files
datas = collect_data_files('pyexcelerate')