mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-29 12:45:45 +00:00
19 lines
476 B
Python
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
|