Message7486
In message <20220502131811.i2pzm65xax2wzhkb@runtux.com>,
Ralf Schlatterbeck writes:
>Ralf Schlatterbeck added the comment:
>On Mon, May 02, 2022 at 12:54:32PM +0000, John Rouillard wrote:
>> Does /nobackup/ralf/share/locale exist? If so this might be breakage
>> from roundup trying to find the prefix and appending share/local at
>> line 70 in i18n.py. This code is fragile and I am not happy with it
>> but it's an attempt to find the locale directory where setup placed
>> the locale files.
>
>Hmm, the directory is not existing: It is not supposed to: I've never
>installed roundup on that test-machine. So it is expected that the
>directory doesn't exist.
That's wierd because the code reads:
path = __file__
for N in 1, 2:
path = os.path.dirname(path)
# path is /usr/local/lib/python3.10/site-packages
_ldir = os.path.join(path, sys.prefix[1:], 'share', 'locale')
if os.path.isdir(_ldir):
LOCALE_DIRS.append(_ldir)
del _ldir
That should add _ldir to LOCALE_DIRS only if _ldir is a directory. It
takes the path of i18n.py (I assume:
/nobackup/ralf/checkout/sourceforge/roundup.hg.tip/i18n.py) and
reduces it to:
/nobackup/ralf/checkout/sourceforge/roundup.hg.tip
/nobackup/ralf/checkout/sourceforge
so I am not sure where /nobackup/ralf/share/locale even came from.
Hmph. |
|
Date |
User |
Action |
Args |
2022-05-02 23:00:00 | rouilj | set | recipients:
+ rouilj, schlatterbeck, marcus.priesch |
2022-05-02 23:00:00 | rouilj | link | issue2551200 messages |
2022-05-02 22:59:59 | rouilj | create | |
|