Makes the python code only run on Linux.
Find a file
2024-07-02 18:57:09 +02:00
nowin.py Added readme v1.1 2024-07-02 18:51:26 +02:00
README.md Made some tiny improvements in the readme. 2024-07-02 18:57:09 +02:00

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: