A small script reads the list file located in the script directory:
open(os.path.dirname(os.path.abspath(__file__))+'/list','w') as F I make a symbolic link:
sudo ln -s /home/user/script/script.py /usr/local/bin/script And when I try to access the script via the link I get:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/list' How to refer to the file and still maintain portability?