Skip to content

Instantly share code, notes, and snippets.

View fix_nif.py
#!/usr/bin/env python
import argparse, re, os
from pyffi.formats.nif import NifFormat
def process_dir(dir, is_dryrun):
file_changed = False
for stream, data in NifFormat.walkData(args.dir):
try:
# the replace call makes the doctest also pass on windows
os_path = stream.name
You can’t perform that action at this time.