Mercurial > hg > cc > cirrus_work
changeset 137:09019621f790
importing in __init__ causes problems
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sat, 30 Sep 2023 14:11:49 +0100 |
parents | 91e4ece4b9cd |
children | ee5d5d712176 |
files | bin/sort_date.sh lib/python/cc/lmh/__init__.py |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/sort_date.sh Sat Sep 30 14:11:49 2023 +0100 @@ -0,0 +1,3 @@ +#!/bin/bash +export PYTHONPATH=$PYTHONPATH:/work/dc007/dc007/hst/lib/python/cc +python3 -m lmh.sort_date "$@"
--- a/lib/python/cc/lmh/__init__.py Fri Sep 29 15:59:34 2023 +0100 +++ b/lib/python/cc/lmh/__init__.py Sat Sep 30 14:11:49 2023 +0100 @@ -2,4 +2,5 @@ INITED = True -from .sort_date import cdx_key +# from .sort_date import cdx_key +# see https://stackoverflow.com/questions/43393764/python-3-6-project-structure-leads-to-runtimewarning