guneysus
2/2/2016 - 9:02 AM

Fucking mac

Fucking mac

#!/usr/bin/env bash
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LOGDIR=~/workspace/repos/maestro_v2/logs
export PYTHONPATH=$PYTHONPATH:~/workspace/repos/maestro_v2/maestro
export PYTHONPATH=$PYTHONPATH:~/workspace/repos/maestro_v2/maestro/flower

/Applications/PyCharm.app/Contents/MacOS/pycharm


if [ ! -d $LOGDIR ]; then
    mkdir "$LOGDIR"
fi



# python -m flower
# python -m maestro


# echo $PYTHONPATH > ~/Desktop/pypath.txt
open -a Terminal.app ~/bin/pycharm.sh
#!/bin/sh 
# export PYTHONPATH=$PYTHONPATH:~/workspace/repos/maestro_v2/maestro
# export PYTHONPATH=$PYTHONPATH:~/workspace/repos/maestro_v2/maestro/flower

osascript <<END 
tell application "Terminal"
    do script "export LC_ALL=en_US.UTF-8"
    do script "export LANG=en_US.UTF-8"
    do script "open -a pycharm"

end tell
END