Changeset 2986
- Timestamp:
- 06/12/08 01:15:45 (5 years ago)
- Location:
- trunk
- Files:
-
- 7 modified
-
install_scripts/windows/setup.nsi (modified) (1 diff)
-
install_scripts/windows/setup.py (modified) (2 diffs)
-
install_scripts/windows/umit_compiled.nsi (modified) (2 diffs)
-
umitCore/BasePaths.py (modified) (6 diffs)
-
umitCore/NmapCommand.py (modified) (2 diffs)
-
umitCore/Paths.py (modified) (2 diffs)
-
umitGUI/App.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/install_scripts/windows/setup.nsi
r1282 r2986 1 1 !define py2exeOutputDir 'dist' 2 2 !define exe 'Umit.exe' 3 !define icon 'C:\Umit\share\icons\umit _48.ico'3 !define icon 'C:\Umit\share\icons\umit\umit_48.ico' 4 4 !define compressor 'lzma' ;one of 'zlib', 'bzip2', 'lzma' 5 5 !define onlyOneInstance -
trunk/install_scripts/windows/setup.py
r2980 r2986 39 39 # Ex: python setup.py install --prefix=/tmp/umit 40 40 # Will create the directory /tmp/umit with the following directories 41 pixmaps_dir = os.path.join('share', 'pixmaps' )42 icons_dir = os.path.join('share', 'icons' )43 locale_dir = os.path.join('share', ' umit', 'locale')41 pixmaps_dir = os.path.join('share', 'pixmaps', 'umit') 42 icons_dir = os.path.join('share', 'icons', 'umit') 43 locale_dir = os.path.join('share', 'locale') 44 44 config_dir = os.path.join('share', 'umit', 'config') 45 docs_dir = os.path.join('share', ' umit', 'docs')45 docs_dir = os.path.join('share', 'doc', 'umits') 46 46 misc_dir = os.path.join('share', 'umit', 'misc') 47 47 … … 143 143 cmdclass = {"py2exe":umit_py2exe}, 144 144 windows = [{"script" : "umit", 145 "icon_resources" : [(1, os.path.join("share", "icons", "umit_48.ico"))]}], 145 "icon_resources" : [(1, os.path.join(icons_dir, 146 "umit_48.ico"))]}], 146 147 options = {"py2exe":{"compressed":1, 147 148 "optimize":2, -
trunk/install_scripts/windows/umit_compiled.nsi
r2975 r2986 5 5 ;!define MUI_UNICON "share\icons\trash_32.ico" # Uninstaller icon 6 6 !define MUI_HEADERIMAGE 7 !define MUI_HEADERIMAGE_BITMAP "share\pixmaps\ splash.bmp"8 !define MUI_HEADERIMAGE_UNBITMAP "share\pixmaps\ splash.bmp"7 !define MUI_HEADERIMAGE_BITMAP "share\pixmaps\umit\splash.bmp" 8 !define MUI_HEADERIMAGE_UNBITMAP "share\pixmaps\umit\splash.bmp" 9 9 !define MUI_ABORTWARNING 10 10 !define MUI_UNABORTWARNING 11 11 12 12 !define APPLICATION_NAME "Umit" 13 !define APPLICATION_VERSION "0.9.5RC 1"13 !define APPLICATION_VERSION "0.9.5RC2" 14 14 !define WINPCAP "winpcap-nmap-4.01.exe" 15 15 … … 54 54 File COPYING_WINPCAP 55 55 File README 56 File share\icons\umit _*.ico56 File share\icons\umit\umit_*.ico 57 57 58 58 File /r dist\*.* -
trunk/umitCore/BasePaths.py
r2977 r2986 37 37 main_dir = os.path.abspath(os.path.dirname(sys.argv[0])) 38 38 if hasattr(sys, "frozen"): 39 main_dir = dirname(sys.executable)39 main_dir = os.path.dirname(sys.executable) 40 40 41 41 CONFIG_DIR = os.path.join(main_dir, "share", "umit", "config") … … 57 57 umit_opf = 'umit.opf', 58 58 umit_opt = 'umit.opt', 59 pixmaps_dir = os.path.join('share', 'pixmaps'),60 i18n_dir = os.path.join('share','locale'),59 pixmaps_dir = PIXMAPS_DIR, 60 i18n_dir = LOCALE_DIR, 61 61 i18n_message_file = 'umit.mo', 62 62 scan_results_extension = 'usr', # comes from umit scan result … … 65 65 basic_search_sequence = [HOME, CURRENT_DIR], 66 66 config_search_sequence = [HOME, CURRENT_DIR], 67 pixmaps_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'pixmaps'),67 pixmaps_search_sequence = [os.path.join(CURRENT_DIR, PIXMAPS_DIR), 68 68 HOME], 69 i18n_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'locale'), HOME],69 i18n_search_sequence = [os.path.join(CURRENT_DIR, LOCALE_DIR), HOME], 70 70 umitdb = "umit.db", 71 71 services = "nmap-services", … … 84 84 config_search_sequence = [os.path.join(HOME, base_paths['config_dir']), 85 85 CURRENT_DIR, '/etc'], 86 pixmaps_search_sequence = [os.path.join(CURRENT_DIR, 87 'share', 88 'pixmaps'), 89 '/usr/share/pixmaps', 86 pixmaps_search_sequence = [os.path.join(CURRENT_DIR, PIXMAPS_DIR), 87 '/usr/share/pixmaps/umit', 90 88 '/opt/umit', HOME], 91 i18n_search_sequence = [os.path.join(CURRENT_DIR, 'share', 'locale'),89 i18n_search_sequence = [os.path.join(CURRENT_DIR, LOCALE_DIR), 92 90 '/usr/share/locale', 93 91 HOME, CURRENT_DIR])) … … 95 93 PROGRAM_FILES = os.environ.get("PROGRAMFILES", "\\") 96 94 UMIT_DIR = os.path.join(PROGRAM_FILES, "Umit") 97 PIXMAPS_DIR = os.path.join(UMIT_DIR, 'share', 'pixmaps')95 PIXMAPS_DIR = os.path.join(UMIT_DIR, PIXMAPS_DIR) 98 96 99 97 base_paths.update(dict(\ … … 101 99 config_search_sequence = [UMIT_DIR, PROGRAM_FILES, HOME, CURRENT_DIR], 102 100 pixmaps_search_sequence = [PIXMAPS_DIR, PROGRAM_FILES, 103 os.path.join(CURRENT_DIR, 'share', 'pixmaps'),101 os.path.join(CURRENT_DIR, PIXMAPS_DIR), 104 102 HOME], 105 103 i18n_search_sequence = [UMIT_DIR, PROGRAM_FILES, 106 os.path.join(CURRENT_DIR, 'share', 'locale'), HOME],))104 os.path.join(CURRENT_DIR, LOCALE_DIR), HOME],)) 107 105 108 106 elif PLATFORM == 'darwin': -
trunk/umitCore/NmapCommand.py
r2975 r2986 22 22 23 23 import sys 24 sys.path.append(".") 24 25 import os 25 26 import re … … 432 433 loadTestsFromTestCase(SplitQuotedTest)) 433 434 434 scan = NmapCommand('%s -T4 -iL "/home/adriano/umit/test/targets\ teste"' % \435 scan = NmapCommand('%s -T4 192.168.0.101"' % \ 435 436 nmap_command_path) 436 437 scan.run_scan() -
trunk/umitCore/Paths.py
r2975 r2986 107 107 config_dir = base_paths['user_dir'] 108 108 config_file = supposed_file 109 log.debug(">>> Using config files in user home \110 directory: %s"% config_file)109 log.debug(">>> Using config files in user home directory: %s" \ 110 % config_file) 111 111 112 112 elif not exists(supposed_file)\ … … 156 156 157 157 log.debug(">>> Config file: %s" % config_file) 158 log.debug(">>> Locale: %s" % self.locale_dir) 159 log.debug(">>> Pixmaps: %s" % self.pixmaps_dir) 160 log.debug(">>> Icons: %s" % self.icons_dir) 161 log.debug(">>> Misc: %s" % self.misc_dir) 162 log.debug(">>> Docs: %s" % self.docs_dir) 158 163 159 164 def update_config_dir(self, config_dir): -
trunk/umitGUI/App.py
r2975 r2986 117 117 import gobject 118 118 from umitGUI.Splash import Splash 119 log.info(">>> Pixmaps path: %s" % Path.pixmaps_dir) 119 120 120 121 if not is_maemo():
