do not deprecatewarning if gp 2.12

This commit is contained in:
Nikos Kouremenos 2005-09-24 12:51:30 +00:00
parent d8eaad6ed7
commit f07d4eba1a

View file

@ -1270,7 +1270,10 @@ if __name__ == '__main__':
if path_to_gajim_script: if path_to_gajim_script:
argv = [path_to_gajim_script] argv = [path_to_gajim_script]
cli.set_restart_command(len(argv), argv) if gnome.gnome_python_version >= (2, 12, 0):
cli.set_restart_command(argv)
else:
cli.set_restart_command(len(argv), argv)
try: try:
import gconf import gconf