Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Remove clr load handling on x64 darwin #283

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions stock_indicators/_cslib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,10 @@
"""

import os
import sys
from pythonnet import load
from clr_loader.util.find import find_dotnet_cli

try:
if sys.platform == "darwin":
if sys.maxsize > 2**32:
dotnet_root = find_dotnet_cli().resolve().parent
else:
dotnet_root = "/usr/local/share/dotnet"
else:
dotnet_root = None
load(runtime="coreclr",
runtime_config=os.path.join(os.path.dirname(__file__), 'runtimeconfig.json'),
dotnet_root=dotnet_root)
load(runtime="coreclr", runtime_config=os.path.join(os.path.dirname(__file__), 'runtimeconfig.json'))
import clr
except Exception as e:
raise ImportError(("fail to import clr.\n"
Expand Down