Changeset 75:79748a884eb5


Ignore:
Timestamp:
09/01/13 19:44:45 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
32396532626232633761376238623962356566353438386634316265666639363666326435636338
Message:

Put levels in a levels directory

Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r72 r75  
    3838        index = 0
    3939        num_points = 0
    40         with resources.get_file(self.name) as f:
     40        with resources.get_file('levels', self.name) as f:
    4141            for line in f:
    4242                if inpoly:
     
    7878            print 'Not saving the level'
    7979            return
    80         with resources.get_file(self.name, mode='w') as f:
     80        with resources.get_file('levels', self.name, mode='w') as f:
    8181            f.write('X-Size: %s\n' % self.x)
    8282            f.write('Y-Size: %s\n' % self.y)
Note: See TracChangeset for help on using the changeset viewer.