deluge/src/info.py

19 lines
476 B
Python

#!/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