Skip to content

Commit

Permalink
cleaner fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul committed Aug 11, 2023
1 parent ae00222 commit 18022c6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/nyx/python/nyxus/nyxus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
import pandas as pd
from typing import Optional, List

if sys.version_info[0]==3 and sys.version_info[1]>=8:
# since add_dll_dir is added in Python3.8
# Assuming this is OK since 3.7 has reached EOL and
# this added search_path is needed on conda distribution only which
# currently builds for 3.8+
import pyarrow as pa
if os.sys.platform == "win32":
for lib_dir in pa.get_library_dirs():
import pyarrow as pa
if os.sys.platform == "win32":
for lib_dir in pa.get_library_dirs():
if sys.version_info[0]==3 and sys.version_info[1]>=8:
# since add_dll_dir is added in Python3.8
os.add_dll_directory(lib_dir)
else:
os.environ['PATH'] = lib_dir + os.pathsep + os.environ['PATH']

from .backend import (
initialize_environment,
Expand Down

0 comments on commit 18022c6

Please sign in to comment.