This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Original file line number Diff line number Diff line change 1
1
__author__ = "Roland Hedberg"
2
- __version__ = "1.5.1 "
2
+ __version__ = "1.5.2 "
3
3
4
4
import os
5
5
from typing import Dict
@@ -32,39 +32,3 @@ def proper_path(path):
32
32
path += "/"
33
33
34
34
return path
35
-
36
-
37
- # def add_base_path(conf: Dict[str, str], item_paths: dict, base_path: str):
38
- # """
39
- # This is for adding a base path to path specified in a configuration
40
- #
41
- # :param conf: Configuration
42
- # :param item_paths: The relative item path
43
- # :param base_path: An absolute path to add to the relative
44
- # """
45
- # for section, items in item_paths.items():
46
- # if section == "":
47
- # part = conf
48
- # else:
49
- # part = conf.get(section)
50
- #
51
- # if part:
52
- # if isinstance(items, list):
53
- # for attr in items:
54
- # _path = part.get(attr)
55
- # if _path:
56
- # if _path.startswith("/"):
57
- # continue
58
- # elif _path == "":
59
- # part[attr] = "./" + _path
60
- # else:
61
- # part[attr] = os.path.join(base_path, _path)
62
- # elif items is None:
63
- # if part.startswith("/"):
64
- # continue
65
- # elif part == "":
66
- # conf[section] = "./"
67
- # else:
68
- # conf[section] = os.path.join(base_path, part)
69
- # else: # Assume items is dictionary like
70
- # add_base_path(part, items, base_path)
You can’t perform that action at this time.
0 commit comments