use cleaner working dir selection in check scripts

This commit is contained in:
Hans-Christoph Steiner 2020-11-17 15:23:33 +01:00
parent 8e4de1e5f2
commit e3a48e6dfd
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import os
import re
import sys
os.chdir(os.path.dirname(__file__) + '/../')
os.chdir(os.path.join(os.path.dirname(__file__), '..'))
count = 0

View File

@ -3,7 +3,7 @@
import glob
import os
os.chdir(os.path.dirname(__file__) + '/../')
os.chdir(os.path.join(os.path.dirname(__file__), '..'))
for f in glob.glob('metadata/*/*/*.txt') + glob.glob('metadata/*/*/*/*.txt'):
if os.path.getsize(f) == 0: