mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 14:37:17 +02:00
Updated HTML docs.
This commit is contained in:
parent
d35cbb8f68
commit
4544902e08
199 changed files with 3931 additions and 855 deletions
|
|
@ -58,8 +58,8 @@
|
|||
<a class="viewcode-back" href="../../../api/evennia.accounts.accounts.html#evennia.accounts.accounts.import_string">[docs]</a>
|
||||
<span class="k">def</span><span class="w"> </span><span class="nf">import_string</span><span class="p">(</span><span class="n">dotted_path</span><span class="p">):</span>
|
||||
<span class="w"> </span><span class="sd">"""</span>
|
||||
<span class="sd"> Import a dotted module path and return the attribute/class designated by the</span>
|
||||
<span class="sd"> last name in the path. Raise ImportError if the import failed.</span>
|
||||
<span class="sd"> Import a dotted module path and return the attribute/class designated by</span>
|
||||
<span class="sd"> the last name in the path. Raise ImportError if the import failed.</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="k">try</span><span class="p">:</span>
|
||||
<span class="n">module_path</span><span class="p">,</span> <span class="n">class_name</span> <span class="o">=</span> <span class="n">dotted_path</span><span class="o">.</span><span class="n">rsplit</span><span class="p">(</span><span class="s2">"."</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue