title: How do I load multiple lldb type summaries Python files?
body: <p>A posted <a href="https://stackoverflow.com/questions/16856353/how-to-show-objective-c-description-in-xcode">a question</a> a while back on how to add custom LLDB type summaries into Xcode. I found out that we can do so by loading a Python script.</p>
  
  <p>However, I want to know if there's a way to load multiple Python files? I work with many different projects, so I want to have 1 summaries files for the general types that are used in all my projects, and 1 summaries files for project-specific types.</p>
  
  <hr>
  
  <p><strong>~/MyGenericSummaries.py</strong></p>
  
  <pre><code>import lldb
  
  def __lldb_init_module(debugger, dictionary):
      debugger.HandleCommand('type summary add --summary-string "these are words" MyGenericClass');
  </code></pre>
  
  <hr>
  
  <p><strong>~/MyProjectSummaries.py</strong></p>
  
  <pre><code>import lldb
  
  def __lldb_init_module(debugger, dictionary):
      debugger.HandleCommand('type summary add --summary-string "these are more words" MyProjectClass');
  </code></pre>
  
  <hr>
  
  <p><strong>~/.lldbinit</strong></p>
  
  <pre><code>command script import ~/MyGenericSummaries.py
  command script import ~/MyProjectSummaries.py
  </code></pre>
  
  <hr>
  
  <p>This never loads the type summary of MyProjectSummaries.py -- LLDB just tells me</p>
  
  <blockquote>
    <p>error: module importing failed: module already imported</p>
  </blockquote>
  
  <p>Is it possible to keep the generic summaries and project summaries in seperate files? This would really help, because I have some type names that clash amongst different projects, so I'd rather split these off.</p>
  
  <p>Many thanks :)</p>