Skip to content
Snippets Groups Projects
Commit 7553fb50 authored by antondmtvch's avatar antondmtvch
Browse files

update var name

parent 3bfb1141
No related branches found
No related tags found
1 merge request!29Реализован скрипт замены некорректных импортов
...@@ -13,11 +13,11 @@ REGEXP = re.compile( ...@@ -13,11 +13,11 @@ REGEXP = re.compile(
r"( import.*pb2)" r"( import.*pb2)"
) )
PERXIS_DIR_NAME = "perxis" PERXIS_DIR_NAME = "perxis"
PERXIS_PATH = (Path(__file__).parent.absolute()).joinpath(PERXIS_DIR_NAME) PERXIS_DIR_PATH = (Path(__file__).parent.absolute()).joinpath(PERXIS_DIR_NAME)
def main(): def main():
for path, _, files in os.walk(PERXIS_PATH): for path, _, files in os.walk(PERXIS_DIR_PATH):
for name in files: for name in files:
file_path = os.path.join(path, name) file_path = os.path.join(path, name)
with open(file_path, "r+") as f: with open(file_path, "r+") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment