Skip to content

Commit 9a869db

Browse files
committed
fixes #20 for good
1 parent 13ad253 commit 9a869db

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

txt2vectorgfx.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,14 @@ def run(self, p, poUseColor,poFormat, poOpaque, poTight, poKeepPnm, poThreshold,
116116
tobeglobbed = folder+"/*."+opts.samples_format
117117
files = glob.glob(tobeglobbed)
118118

119-
if ((len(files) < 1) or (len(files) < len(images)) ):
120-
# immediately prints the following.
119+
if (len(files) < 1) :
121120
print("Txt2Vector: image file not yet written, waiting two seconds for filesystem...")
122-
print("files before wait: " + files)
121+
print("files before wait: " + '\n'.join(map(str, files)))
123122
time.sleep(2)
124123
files = glob.glob(tobeglobbed)
125-
print("files after wait: " + files)
124+
print("files after wait: " + '\n'.join(map(str, files)))
126125

127126
assert len(files) > 0, "no image file found in folder:"+tobeglobbed
128-
assert len(files) >= len(images), "could not find enough generated image files. folder: "+tobeglobbed
129127

130128
# latest first
131129
files = sorted(files, key=os.path.getctime, reverse=True)

0 commit comments

Comments
 (0)