~allsymes/vineyard/fixes

« back to all changes in this revision

Viewing changes to python-wine/wine/_drives.py

  • Committer: Christian Dannie Storgaard
  • Date: 2010-02-24 02:41:28 UTC
  • Revision ID: cybolic@gmail.com-20100224024128-o4a3o70m8me0n74c
vineyard-preferences: Window now resizes on Advanced toggle. Error catching for wrong icon fields in registry. Now doesn't fall over when multiple versions of the same program is installed. Recreated the Programs page as a plugin. Changed from tabs to spaces in cache.py. Updated the pychecker tool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
                        "%s:" % driveletter.upper(): "hd"
25
25
                }})
26
26
        
 
27
        def getMainDrive(self, drives=None):
 
28
            if drives == None:
 
29
                drives = self.get()
 
30
            return sorted([ (k,v) for (k,v) in drives.iteritems() ])[0][1]
 
31
        
27
32
        def add(self, driveletter, mapping, *args):
28
33
                driveletter = driveletter.lower()
29
34
                drivemapping = os.path.normpath("%s/dosdevices/%s:" % (os.environ['WINEPREFIX'], driveletter))