mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-08-04 14:28:24 +00:00
Update setup.py
This commit is contained in:
parent
e64baf4107
commit
974269a2ba
1 changed files with 1 additions and 7 deletions
8
setup.py
8
setup.py
|
@ -16,12 +16,6 @@ def removeprefix(string, prefix):
|
|||
else:
|
||||
return string
|
||||
|
||||
def removesuffix(string, suffix):
|
||||
if string.endswith(suffix):
|
||||
return string[:-len(suffix)]
|
||||
else:
|
||||
return string
|
||||
|
||||
class Clean(Command):
|
||||
user_options = []
|
||||
def initialize_options(self):
|
||||
|
@ -49,7 +43,7 @@ cargo_args = ["--no-default-features"]
|
|||
home = os.path.expanduser("~")
|
||||
file_and_dirs = glob(home + "/" + ".erg/lib/**", recursive=True)
|
||||
paths = [Path(path) for path in file_and_dirs if os.path.isfile(path)]
|
||||
files = [(removeprefix(removesuffix(str(path), "/" + path.name), home), str(path)) for path in paths]
|
||||
files = [(removeprefix(str(path.parent), home), str(path)) for path in paths]
|
||||
data_files = {}
|
||||
for key, value in files:
|
||||
if key in data_files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue