remove no longer used spawn files

This commit is contained in:
Marcos Pinto 2007-08-08 03:16:52 +00:00
parent 2e1e6901da
commit 658282d09d
2 changed files with 0 additions and 45 deletions

View File

@ -1,18 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
import platform
import gtk
import os
import common
pygtk = '%i.%i.%i' %(gtk.pygtk_version[0],gtk.pygtk_version[1],gtk.pygtk_version[2])
urllib.urlopen("http://download.deluge-torrent.org/stats.php?processor=" + \
platform.machine() + "&python=" + platform.python_version() \
+ "&os=" + platform.system() + "&pygtk=" + pygtk)
f = open(os.path.join(common.CONFIG_DIR, 'infosent'), 'w')
f.write("")
f.close

View File

@ -1,27 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
import sys
new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
if new_release > sys.argv[1]:
import gtk
import pygtk
dialog = gtk.MessageDialog(parent = None,
flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
buttons = gtk.BUTTONS_YES_NO,
message_format=_("There is a newer version of Deluge. Would you like to be taken to our download site?"),
type=gtk.MESSAGE_QUESTION)
dialog.set_title('New Release!')
import time
#give main client time to get up and running so we dont get placed in the
#background and hidden. also sleep this long for blocklist import
time.sleep(20)
result = dialog.run()
dialog.destroy()
if result == gtk.RESPONSE_YES:
import os
os.spawnlp(os.P_NOWAIT, 'python', 'python', '-c', "import webbrowser; webbrowser.open('http://download.deluge-torrent.org/')")
elif result == gtk.RESPONSE_NO:
pass