Changeset 57:1261c0731385


Ignore:
Timestamp:
Sep 1, 2013, 4:55:19 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Use resource get_file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r55 r57  
    104104            print 'Not saving the level'
    105105            return
    106         levelfile = resources.get_resource_path(self.name)
    107         with file(levelfile, 'w') as f:
     106        with resources.get_file(self.name, mode='w') as f:
    108107            f.write('X-Size: %s\n' % self.x)
    109108            f.write('Y-Size: %s\n' % self.y)
Note: See TracChangeset for help on using the changeset viewer.