~/repo/evalidate
в нем всякие setup.py
, README
и можно еще и какой-нибудь тестовый x.py
там положить. И в этом же каталоге у меня есть еще один каталог evalidate
и в нем уже либа (__init__.py
и другие файлы).x.py
делаю import evalidate
, и пишу свой тестовый код. Чтобы import сработал из моего подкаталога evalidate, а не использовалась системная библиотека, и нужно поставить переменную окружения export PYTHONPATH=.
mir ~/repo/shinhub $ rgrep michelin-energy-xm2 public/
public/index.xml: <link>https://shinhub.ru/tires/michelin-energy-xm2/</link>
public/index.xml: <guid>https://shinhub.ru/tires/michelin-energy-xm2/</guid>
public/index.xml: <link>https://shinhub.ru/tires/michelin-energy-xm2plus/</link>
public/index.xml: <guid>https://shinhub.ru/tires/michelin-energy-xm2plus/</guid>
public/tires/index.html: <li><a href="/tires/michelin-energy-xm2plus/">Michelin Energy XM2+</a> (1)</li>
public/tires/index.xml: <link>https://shinhub.ru/tires/michelin-energy-xm2/</link>
public/tires/index.xml: <guid>https://shinhub.ru/tires/michelin-energy-xm2/</guid>
public/tires/index.xml: <link>https://shinhub.ru/tires/michelin-energy-xm2plus/</link>
public/tires/index.xml: <guid>https://shinhub.ru/tires/michelin-energy-xm2plus/</guid>
public/sitemap.xml: <loc>https://shinhub.ru/tires/michelin-energy-xm2/</loc>
public/sitemap.xml: <loc>https://shinhub.ru/tires/michelin-energy-xm2plus/</loc>
[Interface]
PrivateKey = ....
Address = 10.9.0.2/24
ListenPort = 12345
PreUp = nping --udp --count 1 --data-length 16 --source-port 12345 --dest-port 12345 123.123.123.123
wg-quiсk up wg0
автоматически сначала nping дурит DPI, а затем уже запускается обычный wireguard.
Проблема не в том, что я не могу выдумать решение, я боюсь, что я упускаю стандартное решение.