~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to widelandslib/tribe.py

  • Committer: kaputtnik
  • Date: 2019-03-31 11:08:21 UTC
  • mto: This revision was merged to the branch mainline in revision 531.
  • Revision ID: kaputtnik-20190331110821-1o6c8ebh1sag7xat
mv main files into mainpage directory; apply needed changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import os.path as p
5
5
import json
6
6
try:
7
 
    from settings import WIDELANDS_SVN_DIR
8
 
    basedir = WIDELANDS_SVN_DIR
 
7
    from django.conf import settings
 
8
    basedir = settings.WIDELANDS_SVN_DIR
9
9
except:
10
10
    basedir = p.join(p.dirname(__file__), p.pardir, p.pardir)
11
11
 
20
20
 
21
21
    @property
22
22
    def image(self):
23
 
        return p.abspath(p.join(WIDELANDS_SVN_DIR, 'data', self._json['icon']))
 
23
        return p.abspath(p.join(settings.WIDELANDS_SVN_DIR, 'data', self._json['icon']))
24
24
 
25
25
 
26
26
class Ware(BaseDescr):