~dobey/ubuntuone-client/fix-test-fails

« back to all changes in this revision

Viewing changes to ubuntuone/platform/os_helper/__init__.py

- Refactor os_helper (LP: #989128).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
 
34
34
if sys.platform == "win32":
35
 
    from ubuntuone.platform.windows import os_helper
36
 
    source = os_helper
 
35
    from ubuntuone.platform.os_helper import windows
 
36
    source = windows
37
37
else:
38
 
    from ubuntuone.platform.linux import os_helper
39
 
    source = os_helper
 
38
    from ubuntuone.platform.os_helper import linux
 
39
    source = linux
40
40
 
41
41
set_no_rights = source.set_no_rights
42
42
set_file_readonly = source.set_file_readonly