ignore files starting with . too
This commit is contained in:
parent
64592e7278
commit
b2ceec3c28
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ def build_oxjs(geo):
|
||||||
data[1].append(js_dir + filename)
|
data[1].append(js_dir + filename)
|
||||||
filenames = filenames[0] + filenames[1]
|
filenames = filenames[0] + filenames[1]
|
||||||
for filename in os.listdir(source_path + js_dir):
|
for filename in os.listdir(source_path + js_dir):
|
||||||
if not filename in filenames:
|
if not filename in filenames \
|
||||||
|
and not filename.startswith('.') \
|
||||||
|
and not filename.endswith('~'):
|
||||||
filenames.append(filename)
|
filenames.append(filename)
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
js += read_file(source_path + js_dir + filename) + '\n'
|
js += read_file(source_path + js_dir + filename) + '\n'
|
||||||
|
|
Loading…
Reference in a new issue