Roundup Tracker - Issues

Message7486

Author rouilj
Recipients marcus.priesch, rouilj, schlatterbeck
Date 2022-05-02.22:59:59
Message-id <20220502225955.4F8056A0289@pe15.cs.umb.edu>
In-reply-to <20220502131811.i2pzm65xax2wzhkb@runtux.com>
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.
History
Date User Action Args
2022-05-02 23:00:00rouiljsetrecipients: + rouilj, schlatterbeck, marcus.priesch
2022-05-02 23:00:00rouiljlinkissue2551200 messages
2022-05-02 22:59:59rouiljcreate