Skip to content

Instantly share code, notes, and snippets.

@trouni
Last active July 26, 2023 04:15
Show Gist options
  • Save trouni/64db7f8b7ac8229b5bd2a237ea7bd400 to your computer and use it in GitHub Desktop.
Save trouni/64db7f8b7ac8229b5bd2a237ea7bd400 to your computer and use it in GitHub Desktop.
Add Olist to PYTHONPATH - AirLiquide DataStudio
#!/bin/bash
cd /home/ec2-user/SageMaker/code/
# Get the first entry in the current directory
gh_username=$(ls -A1 | grep -m1 "^[^.]" | head -n1)
echo "export PYTHONPATH=\"~/SageMaker/code/$gh_username/data-analyst-challenges/04-Decision-Science:\$PYTHONPATH\"" >> ~/.bashrc
exec bash
echo "Successfully added the Decision Science folder to the PYTHONPATH. Good luck with your challenges! 💪"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment