Skip to content

Commit 3264859

Browse files
committed
Move the template dir outside of the code tree.
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent b7e971e commit 3264859

File tree

5 files changed

+2
-3
lines changed

5 files changed

+2
-3
lines changed

docs/UsingAboutCodetoDocumentYourSoftwareAssets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ You should prepare a filtered version of your software inventory (the one that y
291291

292292
You can run attrib using the default_html.template (or default_json.template if want JSON output) provided with the AboutCode Toolkit tools:
293293

294-
[https://github.com/nexB/aboutcode-toolkit/blob/develop/src/attributecode/templates/default_html.template](https://github.com/nexB/aboutcode-toolkit/blob/develop/src/attributecode/templates/default_html.template)
294+
[https://github.com/nexB/aboutcode-toolkit/blob/develop/templates/default_html.template](https://github.com/nexB/aboutcode-toolkit/blob/develop/templates/default_html.template)
295295

296296
If you choose to do that, you will most likely want to edit the generated .html file to provide header information about your own organization and product.
297297

src/attributecode/attrib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
from attributecode.util import add_unc
3535

3636

37-
# FIXME: the template dir should be outside the code tree
3837
DEFAULT_TEMPLATE_FILE = os.path.join(
39-
os.path.dirname(os.path.realpath(__file__)), 'templates', 'default_html.template')
38+
os.path.dirname(os.path.realpath(__file__)), '../../templates', 'default_html.template')
4039

4140

4241
def generate(abouts, template=None, variables=None):
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)