Skip to content
Browse files

patch fix for hidden file exception on android from don

  • Loading branch information...
1 parent c2073e3 commit a69e342e8df4b1e67fc999b2d69d2ce23f0692be @jhaynie jhaynie committed Nov 30, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 support/android/android.py
View
3 support/android/android.py
@@ -75,11 +75,12 @@ def load_template(self, template):
def render(self, template_dir, template_file, dest, dest_file):
tmpl = self.load_template(os.path.join(template_dir, 'templates', template_file))
+ f = None
try:
f = open(os.path.join(dest, dest_file), "w")
f.write(tmpl.render(config = self.config))
finally:
- f.close
+ if f!=None: f.close
def create(self, dir, build_time=False):
template_dir = os.path.dirname(sys._getframe(0).f_code.co_filename)

0 comments on commit a69e342

Please sign in to comment.
Something went wrong with that request. Please try again.