31 lines
No EOL
597 B
Markdown
31 lines
No EOL
597 B
Markdown
# 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 "<site-packages>" 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:
|
|
`` |