Skip to content
Snippets Groups Projects

Реализован скрипт замены некорректных импортов

Merged Anton Teplyakov requested to merge bugfix/import_errors into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -13,11 +13,11 @@ REGEXP = re.compile(
r"( import.*pb2)"
)
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():
for path, _, files in os.walk(PERXIS_PATH):
for path, _, files in os.walk(PERXIS_DIR_PATH):
for name in files:
file_path = os.path.join(path, name)
with open(file_path, "r+") as f:
Loading