On 8/5/25 18:43, Wikinaut wrote:
I managed to have my set_member_prefs.py in /opt/mailman (home dir of mailman)
or below, for example in /opt/mailman/venv/lib , but mailman does not find it
when I use a different location outside mm home (and yes, I set the ownership
for it to mailman):
It works for me:
```
mark@msapiro:~$ ls -l zzz
total 4
-rw-rw-r-- 1 mark mark 35 Aug 5 19:23 xxx.py
mark@msapiro:~$ cat zzz/xxx.py
def demo():
print('I am demo')
mark@msapiro:~$ . /opt/mailman/mm/venv/bin/activate
(venv) mark@msapiro:~$ PYTHONPATH=/home/mark mailman shell -r zzz.xxx.demo
I am demo
```
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/[email protected]/message/5Q7L4UHHYFYQ6TYQJK67IIUO4HZ6H25S/
This message sent to [email protected]