Make python script executable in WSL Ubuntu 18.04
Andrew Henderson
maybe you can help me with my problem...
I'm trying to make a python script executable on Ubuntu 18.04 in WSL.
I created a folder where my python scripts are saved /home/<user>/Python_scripts.
Second, I try to link the folder using the file .pythonrc
#.pythonrc file
import sys
import os
sys.path.append('/home/<user>/Python_scripts/')
print ('Scripts loaded')
#end .pythonrc fileThird, i add to my .bashrc the next line in order to relate .pythonrc file:
export PYTHONSTARTUP=$HOME/.pythonrcFinally source .bashrcBut the scripts are never loaded, i can't find the scripts executable.
Thanks you in advance.
3 Reset to default