| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,8 @@ | |||
| 5 | 5 | import fnmatch | |
| 6 | 6 | import os | |
| 7 | 7 | import sys | |
| 8 | - from os import path | ||
| 9 | 8 | ||
| 10 | - with open(path.join(path.dirname(__file__), 'VERSION')) as v: | ||
| 9 | + with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as v: | ||
| 11 | 10 | VERSION = v.readline().strip() | |
| 12 | 11 | ||
| 13 | 12 | with open('requirements.txt') as reqs_file: | |
@@ -22,8 +21,8 @@ | |||
| 22 | 21 | class build_py(_build_py): | |
| 23 | 22 | ||
| 24 | 23 | def run(self) -> None: | |
| 25 | - init = path.join(self.build_lib, 'git', '__init__.py') | ||
| 26 | - if path.exists(init): | ||
| 24 | + init = os.path.join(self.build_lib, 'git', '__init__.py') | ||
| 25 | + if os.path.exists(init): | ||
| 27 | 26 | os.unlink(init) | |
| 28 | 27 | _build_py.run(self) | |
| 29 | 28 | _stamp_version(init) | |
@@ -34,10 +33,10 @@ class sdist(_sdist): | |||
| 34 | 33 | ||
| 35 | 34 | def make_release_tree(self, base_dir: str, files: Sequence) -> None: | |
| 36 | 35 | _sdist.make_release_tree(self, base_dir, files) | |
| 37 | - orig = path.join('git', '__init__.py') | ||
| 38 | - assert path.exists(orig), orig | ||
| 39 | - dest = path.join(base_dir, orig) | ||
| 40 | - if hasattr(os, 'link') and path.exists(dest): | ||
| 36 | + orig = os.path.join('git', '__init__.py') | ||
| 37 | + assert os.path.exists(orig), orig | ||
| 38 | + dest = os.path.join(base_dir, orig) | ||
| 39 | + if hasattr(os, 'link') and os.path.exists(dest): | ||
| 41 | 40 | os.unlink(dest) | |
| 42 | 41 | self.copy_file(orig, dest) | |
| 43 | 42 | _stamp_version(dest) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments