import os
import subprocess
pkg_dir = os.path.dirname(os.path.abspath(__file__)) + os.sep + 'clairvoyante'
os.chdir(pkg_dir)
py_sripts = [p for p in os.listdir() if p.endswith('.py')]
subprocess.call(['2to3', '-nw', '--no-diffs'] + py_sripts)
for fn in os.listdir():
    if fn.endswith('.py') and not fn.startswith('__'):
        with open(fn, 'r') as f:
            s = f.read()
        s = s.replace('from . ', '')
        with open(fn, 'w') as f:
            f.write(s)
        print('Fix import of %s' % fn)

12c48302a2f926d9c587665aa2a565ebe82ac024
<mask token>

<mask token>
os.chdir(pkg_dir)
<mask token>
subprocess.call(['2to3', '-nw', '--no-diffs'] + py_sripts)
for fn in os.listdir():
    if fn.endswith('.py') and not fn.startswith('__'):
        with open(fn, 'r') as f:
            s = f.read()
        s = s.replace('from . ', '')
        with open(fn, 'w') as f:
            f.write(s)
        print('Fix import of %s' % fn)

<mask token>
pkg_dir = os.path.dirname(os.path.abspath(__file__)) + os.sep + 'clairvoyante'
os.chdir(pkg_dir)
py_sripts = [p for p in os.listdir() if p.endswith('.py')]
subprocess.call(['2to3', '-nw', '--no-diffs'] + py_sripts)
for fn in os.listdir():
    if fn.endswith('.py') and not fn.startswith('__'):
        with open(fn, 'r') as f:
            s = f.read()
        s = s.replace('from . ', '')
        with open(fn, 'w') as f:
            f.write(s)
        print('Fix import of %s' % fn)

import os
import subprocess
pkg_dir = os.path.dirname(os.path.abspath(__file__)) + os.sep + 'clairvoyante'
os.chdir(pkg_dir)
py_sripts = [p for p in os.listdir() if p.endswith('.py')]
subprocess.call(['2to3', '-nw', '--no-diffs'] + py_sripts)
for fn in os.listdir():
    if fn.endswith('.py') and not fn.startswith('__'):
        with open(fn, 'r') as f:
            s = f.read()
        s = s.replace('from . ', '')
        with open(fn, 'w') as f:
            f.write(s)
        print('Fix import of %s' % fn)
