Browse Source

Update __init__.py (#98)

Linux compatibility
ddf_jan
Bazza 11 months ago committed by GitHub
parent
commit
0862f68b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      __init__.py

4
__init__.py

@ -41,7 +41,6 @@ import shutil
from datetime import date
import pathlib
temp = pathlib.PosixPath
pathlib.PosixPath = pathlib.WindowsPath
try:
exec("import torch")
@ -57,7 +56,8 @@ except ModuleNotFoundError:
)
os_platform = platform.system() # 'Linux', 'Darwin', 'Java', 'Windows'
if os_platform == "Windows":
pathlib.PosixPath = pathlib.WindowsPath
def show_system_console(show):
if os_platform == "Windows":

Loading…
Cancel
Save