Skip to content

Commit

Permalink
simplify indexed filename generation, #6
Browse files Browse the repository at this point in the history
  • Loading branch information
berteh committed Aug 3, 2015
1 parent 065bccf commit c1f9018
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ScribusGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import tkFileDialog
import xml.etree.ElementTree as ET # common Python xml implementation
import tempfile
import math

class CONST:
# Constants for general usage
Expand All @@ -62,7 +61,7 @@ def run(self):
# Read CSV data and replace the variables in the Scribus File with the cooresponding data. Finaly export to the specified format.
try:
csvData = self.getCsvData(self.__dataObject.getDataSourceFile())
fillCount = int(math.floor(math.log(len(csvData))))
fillCount = len(str(len(csvData)))
template = [] # XML-Content/Text-Content of the Source Scribus File (List of Lines)
outputFileNames = []
index = 0
Expand Down

0 comments on commit c1f9018

Please sign in to comment.