mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 22:06:27 +00:00
ident
This commit is contained in:
parent
e039de8406
commit
df744c4658
@ -128,29 +128,28 @@ class DelugeGTK:
|
|||||||
result = dialog.run()
|
result = dialog.run()
|
||||||
dialog.destroy()
|
dialog.destroy()
|
||||||
if result == gtk.RESPONSE_YES:
|
if result == gtk.RESPONSE_YES:
|
||||||
common.open_url_in_browser('http://download.deluge-torrent.org')
|
common.open_url_in_browser('http://download.deluge-torrent.org')
|
||||||
elif result == gtk.RESPONSE_NO:
|
elif result == gtk.RESPONSE_NO:
|
||||||
pass
|
pass
|
||||||
gtk.gdk.threads_leave()
|
gtk.gdk.threads_leave()
|
||||||
|
|
||||||
|
|
||||||
def send_info():
|
def send_info():
|
||||||
import time
|
import time
|
||||||
|
|
||||||
def _run_script():
|
def _run_script():
|
||||||
import urllib
|
import urllib
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
pygtk = '%i.%i.%i' %(gtk.pygtk_version[0],gtk.pygtk_version[1],gtk.pygtk_version[2])
|
pygtk = '%i.%i.%i' %(gtk.pygtk_version[0],gtk.pygtk_version[1],gtk.pygtk_version[2])
|
||||||
gtk.gdk.threads_enter()
|
gtk.gdk.threads_enter()
|
||||||
|
urllib.urlopen("http://download.deluge-torrent.org/stats.php?processor=" + \
|
||||||
|
platform.machine() + "&python=" + platform.python_version() \
|
||||||
|
+ "&os=" + platform.system() + "&pygtk=" + pygtk)
|
||||||
|
|
||||||
urllib.urlopen("http://download.deluge-torrent.org/stats.php?processor=" + \
|
f = open(os.path.join(common.CONFIG_DIR, 'infosent'), 'w')
|
||||||
platform.machine() + "&python=" + platform.python_version() \
|
f.write("")
|
||||||
+ "&os=" + platform.system() + "&pygtk=" + pygtk)
|
f.close
|
||||||
|
|
||||||
f = open(os.path.join(common.CONFIG_DIR, 'infosent'), 'w')
|
|
||||||
f.write("")
|
|
||||||
f.close
|
|
||||||
gtk.gdk.threads_leave()
|
gtk.gdk.threads_leave()
|
||||||
|
|
||||||
info_file = os.path.join(common.CONFIG_DIR, 'infosent')
|
info_file = os.path.join(common.CONFIG_DIR, 'infosent')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user