(options, args) = opt_parser.parse_args()
if options.help:
# print help info and quit
- print "\nSALOME Installation Wizard\n"
+ print "\nSALOME Installation Wizard (running on %s)\n" % get_os_name()
opt_parser.print_help()
print ""
sys.exit(0)
return plt_name, plt_ver, plt_arch
+#==============================================================
+# get_os_name : gets qualified OS name
+# For example:
+# Mandriva 2010.0 64bit
+#===============================================================
+def get_os_name():
+ plt_name, plt_ver, plt_arch = get_os_release()
+ data = []
+ for i in plt_name, plt_ver, plt_arch:
+ if i: data.append(i)
+ return " ".join(data)
+
#==============================================================
# check_xml_file : checks XML file existence and readability
#===============================================================
#------------------------------------------------------------------#
if __name__ == "__main__":
+ # get program dir
+ cur_dir = get_program_path()
# parse command line
[xml_file, target_dir, tmp_dir, is_gui, is_force_src, is_single_dir, pltname] = parse_parameters()
if xml_file: xml_file = os.path.abspath(xml_file)
if target_dir: target_dir = os.path.abspath(target_dir)
if tmp_dir: tmp_dir = os.path.abspath(tmp_dir)
- # get program dir
- cur_dir = get_program_path()
#---- GUI ----------------