Line | |
---|
1 | """ |
---|
2 | Ported to Python 3. |
---|
3 | """ |
---|
4 | |
---|
5 | import sys |
---|
6 | from allmydata.util.assertutil import precondition |
---|
7 | from allmydata.util.fileutil import abspath_expanduser_unicode |
---|
8 | |
---|
9 | |
---|
10 | _default_nodedir = None |
---|
11 | if sys.platform == 'win32': |
---|
12 | from allmydata.windows import registry |
---|
13 | path = registry.get_base_dir_path() |
---|
14 | if path: |
---|
15 | precondition(isinstance(path, str), path) |
---|
16 | _default_nodedir = abspath_expanduser_unicode(path) |
---|
17 | |
---|
18 | if _default_nodedir is None: |
---|
19 | path = abspath_expanduser_unicode("~/.tahoe") |
---|
20 | precondition(isinstance(path, str), path) |
---|
21 | _default_nodedir = path |
---|
Note: See
TracBrowser
for help on using the repository browser.