Skip to content

Commit f85d011

Browse files
committed
Use existing version.py file
1 parent 47ddc42 commit f85d011

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/diffpy/pdfgui/version.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
# We do not use the other three variables, but can be added back if needed.
1919
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
2020

21-
# obtain version information
22-
from importlib.metadata import version
21+
import os
22+
import time
23+
from importlib.metadata import distribution, version
2324

25+
# obtain version information
26+
__date__ = time.ctime(os.path.getctime(distribution("diffpy.pdfgui")._path))
2427
__version__ = version("diffpy.pdfgui")
25-
26-
# End of file

0 commit comments

Comments
 (0)