Skip to content

Commit

Permalink
Update fig pager saving file type bug (#15)
Browse files Browse the repository at this point in the history
* Update figpager.py

Unindented file type hold out of isfile() conditional. Previously, the file type was not being saved in cases of new files. This resulted in single pages of new multipage files.
  • Loading branch information
gtdang committed Dec 15, 2020
1 parent fba2ab3 commit c0ed28a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

*.iml
*.xml
4 changes: 2 additions & 2 deletions figpager/figpager.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def __init__(
raise IOError(
"Output file already exists and user chose not to overwrite."
)
# hold file type
self.type = os.path.splitext(outfile)[1][1:]
# hold file type
self.type = os.path.splitext(outfile)[1][1:]

# hold outfile full path
self.outfile = outfile
Expand Down

0 comments on commit c0ed28a

Please sign in to comment.