Skip to content
Permalink
Browse files

Using extension .wpdep instead of .dep to avoid collision.

  • Loading branch information
felixfontein committed Nov 20, 2016
1 parent 95b7bcb commit df8b296778955c198abb85ea3d75ff21381407e2
Showing with 2 additions and 2 deletions.
  1. +2 −2 v7/wordpress_compiler/wordpress/wordpress.py
@@ -195,7 +195,7 @@ def compile_to_string(self, source_data, name=None, additional_data=None):
return self.__formatData(source_data, context)

def _get_dep_filename(self, post, lang):
return post.translated_base_path(lang) + '.dep'
return post.translated_base_path(lang) + '.wpdep'

def get_extra_targets(self, post, lang, dest):
return [self._get_dep_filename(post, lang)]
@@ -273,7 +273,7 @@ def compile(self, source, dest, is_two_file=True, post=None, lang=None):
# Write result
out_file.write(output)
if post is None:
deps_path = dest + '.dep'
deps_path = dest + '.wpdep'
else:
deps_path = self._get_dep_filename(post, lang)
self._write_deps(context, deps_path)

0 comments on commit df8b296

Please sign in to comment.
You can’t perform that action at this time.