Changeset 3201


Ignore:
Timestamp:
11/01/08 13:27:24 (12 years ago)
Author:
pjkersha
Message:

security/python/ndg-security-install.py: fix to the installation script createConfigDir method - pkg_resources.resource_filename() doesn't work for ndg.security.server with fresh install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg-security-install.py

    r3063 r3201  
    321321        # you're replacing instead of the new one 
    322322        import pkg_resources 
    323         eggConfigDir = pkg_resources.resource_filename('ndg.security.server', 
    324                                                        'conf') 
     323 
    325324        # Get distribution version info 
    326325        serverDistro = pkg_resources.get_distribution('ndg-security-server') 
     326        eggConfigDir = os.path.join(serverDistro.location, 'ndg', 'security', 
     327                                    'server', 'conf') 
     328 
    327329        configDirVers = "%s.%s" % (self.opt.configDir, serverDistro.version) 
    328330        # Copy over conf directory from egg 
Note: See TracChangeset for help on using the changeset viewer.