From dec8b9377b7869a9b6206511c976f8c3574dae7c Mon Sep 17 00:00:00 2001 From: doronz88 Date: Wed, 10 Apr 2024 21:25:40 +0300 Subject: [PATCH] fix broken non-windows --- pytun_pmd3/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pytun_pmd3/__init__.py b/pytun_pmd3/__init__.py index 003f66a..c3591e9 100644 --- a/pytun_pmd3/__init__.py +++ b/pytun_pmd3/__init__.py @@ -1 +1,4 @@ -from pytun_pmd3.wintun import TunTapDevice +import sys + +if sys.platform == 'win32': + from pytun_pmd3.wintun import TunTapDevice