Changeset 75:79748a884eb5


Ignore:
Timestamp:
Sep 1, 2013, 7:44:45 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
29e2bb2c7a7b8b9b5ef5488f41beff966f2d5cc8
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.