Skip to content

Instantly share code, notes, and snippets.

View niszhant's full-sized avatar
🎯
Focusing

Nishant niszhant

🎯
Focusing
View GitHub Profile
@niszhant
niszhant / comment_out_circular_imports.py
Created November 19, 2018 09:06 — forked from macks22/comment_out_circular_imports.py
swagger-codegen-circular-import-fixer
import os
import logging
import argparse
logger = logging.getLogger(__name__)
def scan_and_fix_if_needed(module_path, dry_run=False):
# first read in the file
logger.info(f"scanning module {module_path}")