[Debtorrent-commits] r22 - in /debtorrent/trunk:
DebTorrent/ConfigDir.py
DebTorrent/ConfigReader.py DebTorrent/CreateIcons.py bt-t-make.py
bt_MakeCreateIcons.py btdownloadcurses.py btlaunchmanycurses.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Sun Apr 29 02:01:05 UTC 2007
Author: camrdale-guest
Date: Sun Apr 29 02:01:05 2007
New Revision: 22
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=22
Log:
Remove some more gui and some curses stuff
Removed:
debtorrent/trunk/DebTorrent/ConfigReader.py
debtorrent/trunk/DebTorrent/CreateIcons.py
debtorrent/trunk/bt-t-make.py
debtorrent/trunk/bt_MakeCreateIcons.py
debtorrent/trunk/btdownloadcurses.py
debtorrent/trunk/btlaunchmanycurses.py
Modified:
debtorrent/trunk/DebTorrent/ConfigDir.py
Modified: debtorrent/trunk/DebTorrent/ConfigDir.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/ConfigDir.py?rev=22&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/ConfigDir.py (original)
+++ debtorrent/trunk/DebTorrent/ConfigDir.py Sun Apr 29 02:01:05 2007
@@ -3,7 +3,6 @@
from inifile import ini_write, ini_read
from bencode import bencode, bdecode
from types import IntType, LongType, StringType, FloatType
-from CreateIcons import GetIcons, CreateIcon
from parseargs import defaultargs
from __init__ import product_name, version_short
import sys,os
@@ -14,12 +13,6 @@
except:
True = 1
False = 0
-
-try:
- realpath = os.path.realpath
-except:
- realpath = lambda x:x
-OLDICONPATH = os.path.abspath(os.path.dirname(realpath(sys.argv[0])))
DIRNAME = '.'+product_name
@@ -98,15 +91,6 @@
if not os.path.isdir(self.dir_root):
os.mkdir(self.dir_root,0700) # exception if failed
- self.dir_icons = os.path.join(dir_root,'icons')
- if not os.path.isdir(self.dir_icons):
- os.mkdir(self.dir_icons)
- for icon in GetIcons():
- i = os.path.join(self.dir_icons,icon)
- if not os.path.exists(i):
- if not copyfile(os.path.join(OLDICONPATH,icon),i):
- CreateIcon(icon,self.dir_icons)
-
self.dir_torrentcache = os.path.join(dir_root,'torrentcache')
if not os.path.isdir(self.dir_torrentcache):
os.mkdir(self.dir_torrentcache)
@@ -393,9 +377,3 @@
def deleteOldTorrents(self, days, still_active = []):
self.deleteOldCacheData(days, still_active, True)
-
-
- ###### OTHER ######
-
- def getIconDir(self):
- return self.dir_icons
More information about the Debtorrent-commits
mailing list