Changeset 1060

Show
Ignore:
Timestamp:
07/20/07 00:17:39 (6 years ago)
Author:
boltrix
Message:

Changed some paths to setup.py in order to normalize installation paths. It seens that I made a mess with the paths in the past, and now I'm getting it back to the rails.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/setup.py

    r1046 r1060  
    5555# Main Variables 
    5656 
    57 # Directories 
     57# Directories for POSIX operating systems 
     58# These are created after a "install" or "py2exe" command 
     59# These directories are relative to the installation or dist directory 
     60# Ex: python setup.py install --prefix=/tmp/umit 
     61# Will create the directory /tmp/umit with the following directories 
    5862pixmaps_dir = os.path.join('share', 'pixmaps') 
    5963icons_dir = os.path.join('share', 'icons') 
     
    296300 
    297301    def adequate_umit_conf(self): 
    298         install_config_dir = os.path.join("config") 
    299         install_pixmaps_dir = os.path.join("share", "pixmaps") 
    300         install_icons_dir = os.path.join("share", "icons") 
    301         install_locale_dir = os.path.join("share", "locale") 
    302         install_docs_dir = os.path.join("docs") 
    303  
    304         config = dict(config_file = os.path.join(install_config_dir, 'umit.conf'), 
    305                       config_dir = install_config_dir, 
     302        # These are the paths that are going to be saved inside umit.conf 
     303        #install_config_dir = os.path.join("share", "umit", "config") 
     304        #install_pixmaps_dir = os.path.join("share", "pixmaps") 
     305        #install_icons_dir = os.path.join("share", "icons") 
     306        #install_locale_dir = os.path.join("share", "locale") 
     307        #install_misc_dir = os.path.join("share", "misc") 
     308        #install_docs_dir = os.path.join("docs") 
     309 
     310        config = dict(config_file = os.path.join(config_dir, 'umit.conf'), 
     311                      config_dir = config_dir, 
    306312                      user_dir = os.path.join(os.path.expanduser("~"), user_dir), 
    307                       docs_dir = install_docs_dir, 
    308                       pixmaps_dir = install_pixmaps_dir, 
    309                       icons_dir = install_icons_dir, 
    310                       locale_dir = install_locale_dir, 
    311                       umit_icon = os.path.join(install_icons_dir, "umit_48.ico"), 
     313                      docs_dir = docs_dir, 
     314                      pixmaps_dir = pixmaps_dir, 
     315                      icons_dir = icons_dir, 
     316                      locale_dir = locale_dir, 
     317                      misc_dir = misc_dir, 
     318                      umit_icon = os.path.join(icons_dir, "umit_48.ico"), 
    312319                      nmap_command_path = "nmap") 
    313320