~xnox/wubi/saucy-fixup

« back to all changes in this revision

Viewing changes to src/wubi/backends/win32/drive.py

  • Committer: Stéphane Graber
  • Date: 2012-03-07 20:54:46 UTC
  • mfrom: (256.1.3 wubi)
  • Revision ID: stgraber@ubuntu.com-20120307205446-lkzpkr8ulob505jd
Merge fix for bug 365881 by bcbc, thanks\!

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    RAM = 6
33
33
 
34
34
    def __init__(self, letter):
 
35
        ctypes.windll.kernel32.SetErrorMode(1) # suppress no disk error
35
36
        drive_path = letter.upper()
36
37
        if not drive_path.endswith(':'): drive_path += ':'
37
38
        self.path = drive_path