Skip to content

Commit

Permalink
Merge pull request #13 from mpasternak/develop
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
mpasternak authored Mar 27, 2020
2 parents 636b3bf + 71ff50e commit b6fa0cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def finalize_options(self):

def run(self):
curdir = os.getcwd()
os.chdir(os.path.realpath('multiseek'))
os.chdir(os.path.join(os.path.dirname(__file__), 'multiseek'))
from django.core.management import call_command
call_command('compilemessages')
os.chdir(curdir)
Expand Down Expand Up @@ -86,12 +86,14 @@ def run(self):
else:
# Always try to build messages, fail if django not present
# (I hate incomplete releases)
dir = os.getcwd()
os.chdir(os.path.join(dir, 'multiseek'))
cwd = os.getcwd()
os.chdir(os.path.join(os.path.dirname(__file__),'multiseek'))
del os.environ['DJANGO_SETTINGS_MODULE']
os.system('django-admin.py compilemessages')
os.chdir(dir)
os.chdir(cwd)

def reqs(f):
f = os.path.join(os.path.dirname(__file__), f)
for elem in open(f).readlines():
elem = elem.strip()

Expand Down

0 comments on commit b6fa0cf

Please sign in to comment.