Commit eec9ba83 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

remove pkg_resources warning

parent 24aa9eb9
from ObservationSim.ObservationSim import Observation from ObservationSim.ObservationSim import Observation
from ObservationSim._util import parse_args, make_run_dirs, generate_pointing_list from ObservationSim._util import parse_args, make_run_dirs, generate_pointing_list
from pkg_resources import get_distribution from importlib.metadata import version
import os import os
import yaml import yaml
import shutil import shutil
...@@ -24,7 +24,7 @@ def run_sim(): ...@@ -24,7 +24,7 @@ def run_sim():
None None
""" """
# Get version of CSSTSim Package # Get version of CSSTSim Package
__version__ = get_distribution("CSSTSim").version __version__ = version("CSSTSim")
# Get run datetime # Get run datetime
now = datetime.datetime.now() now = datetime.datetime.now()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment