On 8/5/25 10:20, Wikinaut wrote:
Dear Stephen,

this was nice but is not working for me.

I edited a file with name set_user_prefs (without .py) (to preset up user 
preference in the whole system):

It needs a .py extension.

I went to my (venv) and typed
(in /opt/mailman)

$/opt/mailman: mailman withlist -r /opt/mailman/set_members_prefs
or short
mailman withlist -r set_members_prefs

and got
...
ModuleNotFoundError: No module named '/opt/mailman/set_members_prefs'

Perhaps you know, what I did wrong, and can help with a working solution. I 
guess, it can help many users, too.

The file needs a .py extension and it needs to be in a directory containing an __init__.py file. If /opt/mailman/ is not such a directory, it is better to put your script in Mailman's bin directory, e.g. /opt/mailman/venv/bin/set_members_prefs.py

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/SSUID53A7T7NK546X32PR344WQXF4D3C/

This message sent to arch...@mail-archive.com

Reply via email to