2024-07-02 18:51:26 +02:00
|
|
|
# Nowin
|
|
|
|
|
|
|
|
Makes your code only run on linux once imported.
|
|
|
|
|
2024-07-02 18:52:40 +02:00
|
|
|
**Installation:**
|
2024-07-02 18:51:26 +02:00
|
|
|
|
|
|
|
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 "<site-packages>" with your actual path.)
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://teapot.informationsanarchistik.de/Wobbl/nowin.git <site-packages>
|
2024-07-02 18:56:32 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
**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:
|
2024-07-02 18:57:09 +02:00
|
|
|
```
|