~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tools/cache.py

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-06-11 15:45:24 UTC
  • mfrom: (1.2.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130611154524-rppb3w6tixlegv4n
Tags: 1.4.7~20130611~a1eb425-1
* New snapshot release
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  def ensure(self):
50
50
    self.cache.ensure()
51
51
    if not os.path.exists(self.dirname):
52
 
      os.makedirs(self.dirname)
 
52
      try:
 
53
        os.makedirs(self.dirname)
 
54
      except (IOError, OSError):
 
55
        pass
53
56
 
54
57
  def get_shortkey(self, keys):
55
58
    if type(keys) not in [list, tuple]: