Open ojdf opened 2 years ago
The line
with open("astroSat/data/bsc.dat",'r') as f:
gives
FileNotFoundError: [Errno 2] No such file or directory: 'astroSat/data/bsc.dat'
when running scripts anywhere other than the astrosat directory. The fix is to change this line to
with open(os.path.dirname(__file__)+"/data/bsc.dat",'r') as f:
I've fixed it here, probably needs to be pushed to PyPI @matthewtownson ?
Yes, I will push that through next week.
The line
with open("astroSat/data/bsc.dat",'r') as f:
gives
FileNotFoundError: [Errno 2] No such file or directory: 'astroSat/data/bsc.dat'
when running scripts anywhere other than the astrosat directory. The fix is to change this line to
with open(os.path.dirname(__file__)+"/data/bsc.dat",'r') as f: