Update from_file.py

The function should open `filename` instead of `sys.argv[-1]`
Merge pull request #3225 from stargaser/patch-1

Update from_file.py to fix load_wcs_from_fits function