Created
October 26, 2018 12:23
-
-
Save mingwandroid/543ca6a7a9f4805635a486e4514364ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c00daa30990e9c7a9733748f652e22928470380e Mon Sep 17 00:00:00 2001 | |
From: Ray Donnelly <[email protected]> | |
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