Ignore:
Timestamp:
09/01/13 16:46:05 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Add .get_file() to resources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r53 r54  
    3434                print 'Expected: %d, got %d' % (num_points, len(polygon))
    3535
    36         levelfile = resources.get_resource_path(self.name)
    3736        inpoly = False
    3837        polygon = []
    3938        index = 0
    4039        num_points = 0
    41         with file(levelfile, 'rU') as f:
     40        with resources.get_file(self.name) as f:
    4241            for line in f:
    4342                if inpoly:
Note: See TracChangeset for help on using the changeset viewer.