Skip to content

Instantly share code, notes, and snippets.

@shaybensasson
Created November 30, 2018 07:32
Show Gist options
  • Select an option

  • Save shaybensasson/76a036b8b9e21c4f7b68cea0c8269bf8 to your computer and use it in GitHub Desktop.

Select an option

Save shaybensasson/76a036b8b9e21c4f7b68cea0c8269bf8 to your computer and use it in GitHub Desktop.
VirtualEnv Remote Interpreter script for Pycharm Professional Windows Client
#!/bin/bash
#DL cuda stuff
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/extras/CUPTI/lib64
# if virtualenvwrapper.sh is in your PATH (i.e. installed with pip)
source /usr/local/bin/virtualenvwrapper_py3.sh
#source /path/to/virtualenvwrapper.sh # if it's not in your PATH
workon quadcopter
HOME_DIR=/home/shay
#echo "$HOME_DIR"
python3 "$@"
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment