diff --git a/csst_ifs_gehong/spec1d.py b/csst_ifs_gehong/spec1d.py index c91ae5bb4f0bc9eba4ad9c5bdc559facfa90546e..bcb7f07578f7c06731b95922027505a51ee3d103 100644 --- a/csst_ifs_gehong/spec1d.py +++ b/csst_ifs_gehong/spec1d.py @@ -8,7 +8,7 @@ from astropy.io import fits from scipy.stats import norm from scipy.interpolate import interp1d -data_path = os.getcwd() +data_path = os.path.dirname(os.path.abspath(__file__)) def readcol(filename, **kwargs): """