Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mingwandroid/543ca6a7a9f4805635a486e4514364ae to your computer and use it in GitHub Desktop.
Save mingwandroid/543ca6a7a9f4805635a486e4514364ae to your computer and use it in GitHub Desktop.
From c00daa30990e9c7a9733748f652e22928470380e Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Sun, 14 Oct 2018 19:53:16 +0100
Subject: [PATCH] PyCharm debugging support
---
conda/__init__.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/conda/__init__.py b/conda/__init__.py
index d9e0d8c48..3229c84ff 100644
--- a/conda/__init__.py
+++ b/conda/__init__.py
@@ -3,6 +3,11 @@
"""OS-agnostic, system-level binary package manager."""
from __future__ import absolute_import, division, print_function, unicode_literals
+import os, sys
+sys.path.append(os.path.dirname(__file__))
+__name__='conda'
+
+
import os
from os.path import dirname
import sys
@@ -110,3 +115,8 @@ def conda_signal_handler(signum, frame):
from .exceptions import CondaSignalInterrupt
raise CondaSignalInterrupt(signum)
+
+
+if __name__ == 'conda':
+ from conda.cli import main
+ main()
--
2.19.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment