We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4baaa72 commit 0ab4f25Copy full SHA for 0ab4f25
Orange/canvas/application/addons.py
@@ -861,10 +861,21 @@ def manual_uninstall(self, dist):
861
862
class CondaInstaller:
863
def __init__(self):
864
+ self.conda = self._find_conda()
865
+
866
+ def _find_conda(self):
867
executable = sys.executable
868
bin = os.path.dirname(executable)
869
870
+ # posix
871
conda = os.path.join(bin, "conda")
- self.conda = conda if os.path.exists(conda) else None
872
+ if os.path.exists(conda):
873
+ return conda
874
875
+ # windows
876
+ conda = os.path.join(bin, "Scripts", "conda.bat")
877
878
879
880
def install(self, pkg):
881
cmd = ["conda", "install", "--yes", pkg.name]
0 commit comments