feat: linux上で実行する場合の正しいコマンドに修正

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-09-29 13:33:56 +09:00
parent 6aedfa1643
commit e443b32eb4

View File

@ -76,7 +76,7 @@ def _convert_character_hex(dat_file_path: str, config_file_path: str) -> str:
# sedコマンドで置き換え
# MacOSで実行する場合のコマンド
# subprocess.call([f"export LANG=C && sed -i '' -e \"s/{src_hex}/{dst_hex}/g\" {dat_file_path}"], shell=True)
subprocess.call([f"sed -e \"s/{src_hex}/{dst_hex}/g\" {dat_file_path}"], shell=True)
subprocess.call([f"sed -i -e \"s/{src_hex}/{dst_hex}/g\" {dat_file_path}"], shell=True)
logger.debug('文字コード変換終了')
return dat_file_path