Commits

Anonymous committed 9f705c9

Use PROJECT_PATH instead of __file__.

  • Participants
  • Parent commits cdb968c

Comments (0)

Files changed (1)

 from setuptools.command.build_py import build_py as _build_py
 
 from transifex.txcommon import version
+from django.conf import settings
 
 readme_file = open(u'README')
 long_description = readme_file.read()
 def buildlanguages():
     import django.core.management.commands.compilemessages as c
     oldpath = os.getcwd()
-    os.chdir(os.path.join(os.path.dirname(__FILE__), 'transifex',
-        'locale'))
+    os.chdir(os.path.join(settings.PROJECT_PATH, 'locale'))
     c.compile_messages()
     os.chdir(oldpath)