driveposter999 commited on
Commit
381510a
·
1 Parent(s): b8a748f

platformcheck

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
- import sys
2
  import pathlib
3
 
4
- if sys.platform == "win32":
5
  temp = pathlib.PosixPath
6
  pathlib.PosixPath = pathlib.WindowsPath
7
 
 
1
+ import platform
2
  import pathlib
3
 
4
+ if platform.system() == "Windows":
5
  temp = pathlib.PosixPath
6
  pathlib.PosixPath = pathlib.WindowsPath
7