mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-05-08 09:49:52 +00:00
Merge pull request #55 from juliangilbey/fix-win-test
Only import Windows-specific modules when on Windows
This commit is contained in:
commit
5d3835735e
@ -9,6 +9,7 @@ from tempfile import gettempdir
|
|||||||
from send2trash import send2trash as s2t
|
from send2trash import send2trash as s2t
|
||||||
|
|
||||||
# import the two versions as well as the "automatic" version
|
# import the two versions as well as the "automatic" version
|
||||||
|
if sys.platform == "win32":
|
||||||
from send2trash.plat_win_modern import send2trash as s2t_modern
|
from send2trash.plat_win_modern import send2trash as s2t_modern
|
||||||
from send2trash.plat_win_legacy import send2trash as s2t_legacy
|
from send2trash.plat_win_legacy import send2trash as s2t_legacy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user