Skip to content

Commit deac6e3

Browse files
author
Matthias Putz
committed
Portable: added portable.py
1 parent aea442a commit deac6e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

portable.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
import platform
3+
4+
def isUnix():
5+
return platform.system() != "Windows"
6+
7+
def to_windows_path(path):
8+
return path.replace('/', '\\')

0 commit comments

Comments
 (0)