599 B
599 B
Nowin
Makes your code only run on linux once imported.
Installation:
Find your site-packages folder using this command: (USER_SITE)
python3 -m site
And then clone the repository into the folder: (Dont forger to replace "" with your actual path.)
git clone https://teapot.informationsanarchistik.de/Wobbl/nowin.git <site-packages>
Usage:
Add this line on top of your code:
from nowin import nowin
To make it even harder to reprogram your code so that it runs on windows you can use this multiple times in your code:
if nowin.linux: