Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Mar 27, 2020
1 parent 21e523a commit 71ff50e
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 71ff50e

Please sign in to comment.