# Path: src/config.py
# SECRET_HEADER_PATH = join(EXT_SRC_DIR, 'secret_key.h')


import atexit
import os
import py_compile
import re
import shutil
import subprocess
import sys
import tempfile
import unittest
        import pyconcrete
        import pyconcrete
from os.path import abspath, dirname, exists, join
from src.config import SECRET_HEADER_PATH
    from importlib import reload
    pass


PY2 = sys.version_info[0] < 3
ROOT_DIR = abspath(join(dirname(__file__), '..'))
tmp_pyconcrete_dir = None
tmp_pyconcrete_exe = None


def to_bytes(s):
    if PY2:
        if isinstance(s, unicode):  # noqa: F821
            return s.encode('utf8')
        return s
    else:
        if isinstance(s, str):
            return s.encode('utf8')
        return s


def touch(file_path):
    open(file_path, 'a').close()


def build_tmp_pyconcrete(passphrase):
    global tmp_pyconcrete_dir, tmp_pyconcrete_exe
    if tmp_pyconcrete_dir:
        return tmp_pyconcrete_dir

    # remove secret key header, for testing on generate secret-key file

# Path: src/config.py
# SECRET_HEADER_PATH = join(EXT_SRC_DIR, 'secret_key.h')


# Path: test/base.py
import atexit
import os
import py_compile
import re
import shutil
import subprocess
import sys
import tempfile
import unittest
        import pyconcrete
        import pyconcrete
from os.path import abspath, dirname, exists, join
from src.config import SECRET_HEADER_PATH
    from importlib import reload

    pass


PY2 = sys.version_info[0] < 3
ROOT_DIR = abspath(join(dirname(__file__), '..'))
tmp_pyconcrete_dir = None
tmp_pyconcrete_exe = None


def to_bytes(s):
    if PY2:
        if isinstance(s, unicode):  # noqa: F821
            return s.encode('utf8')
        return s
    else:
        if isinstance(s, str):
            return s.encode('utf8')
        return s


def touch(file_path):
    open(file_path, 'a').close()


def build_tmp_pyconcrete(passphrase):
    global tmp_pyconcrete_dir, tmp_pyconcrete_exe
    if tmp_pyconcrete_dir:
        return tmp_pyconcrete_dir

    # remove secret key header, for testing on generate secret-key file

    if os.path.exists(SECRET_HEADER_PATH):