Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_pdf_report
Commits
83acc828
Commit
83acc828
authored
Jul 08, 2019
by
dorp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed path/str type problems
parent
29203d12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
code_generation.py
src/latex_code_generation/code_generation.py
+2
-2
No files found.
src/latex_code_generation/code_generation.py
View file @
83acc828
...
@@ -83,7 +83,7 @@ def create_report_filename(meta_data):
...
@@ -83,7 +83,7 @@ def create_report_filename(meta_data):
def
_copy_fact_image
(
target
):
def
_copy_fact_image
(
target
):
shutil
.
copy
(
Path
(
__file__
)
.
parent
.
parent
/
'templates'
/
'fact_logo.png'
,
Path
(
target
)
/
'fact_logo.png'
)
shutil
.
copy
(
str
(
Path
(
__file__
)
.
parent
.
parent
/
'templates'
/
'fact_logo.png'
),
str
(
Path
(
target
)
/
'fact_logo.png'
)
)
def
execute_pdflatex
(
tmp_dir
):
def
execute_pdflatex
(
tmp_dir
):
...
@@ -117,6 +117,6 @@ def generate_pdf_report(firmware_uid):
...
@@ -117,6 +117,6 @@ def generate_pdf_report(firmware_uid):
execute_pdflatex
(
tmp_dir
)
execute_pdflatex
(
tmp_dir
)
pdf_filename
=
create_report_filename
(
firmware_meta_data
)
pdf_filename
=
create_report_filename
(
firmware_meta_data
)
shutil
.
move
(
Path
(
tmp_dir
,
'main.pdf'
),
Path
(
'.'
,
pdf_filename
))
shutil
.
move
(
str
(
Path
(
tmp_dir
,
'main.pdf'
)),
str
(
Path
(
'.'
,
pdf_filename
)
))
return
None
return
None
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment