1. Martin Thorsen Ranang
  2. tgext.registration2

Commits

al...@alex3.resheteva.lan  committed 7c9dd4b

fix for modwsgi

  • Participants
  • Parent commits 6cfa5f8
  • Branches default

Comments (0)

Files changed (1)

File tgext/registration2/registration_config.py

View file
+
+from sys import modules
+import os
 
 class _empty:
     pass
 def readfile(filename):
     execfile(filename)
 
-readfile('registration.cfg') # initial default values
+module_dir = os.path.dirname(modules[readfile.__module__].__file__)
+cfg_file = os.path.join(module_dir, 'registration.cfg')
+readfile(cfg_file) # initial default values