<commit_before>import sys
import os

from communication.procs import ProcessHandler
if getattr(sys, 'frozen', False):
    ELECTRON_PATH = os.path.join('f')
else:
    ELECTRON_PATH = os.path.join('..', 'gui', 'node_modules', 'electron', 'dist', 'electron.exe')

APP_PATH = r'C:\Users\evan\modules\osspeak\gui'

async def start_electron():
    proc = await ProcessHandler.create([ELECTRON_PATH, APP_PATH], on_output=foo)
    
async def foo(a):
    print(a)<commit_msg>remove hardcoded app path<commit_after>import sys
import os

from communication.procs import ProcessHandler
if getattr(sys, 'frozen', False):
    ELECTRON_PATH = os.path.join('f')
    APP_PATH = os.path.join('..', 'gui')
else:
    ELECTRON_PATH = os.path.join('..', 'gui', 'node_modules', 'electron', 'dist', 'electron.exe')
    APP_PATH = os.path.join('..', 'gui')


async def start_electron():
    proc = await ProcessHandler.create([ELECTRON_PATH, APP_PATH], on_output=foo)
    
async def foo(a):
    print(a)
{'fraction_non_alphanumeric': 0.15848670756646216, 'fraction_numerical': 0.0, 'mean_word_length': 4.626436781609195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4021543', 'n_tokens_mistral': 362, 'n_tokens_neox': 337, 'n_words': 78}