<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Import custom python module inside app in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-import-custom-python-module-inside-app/m-p/428458#M7664</link>
    <description>&lt;P&gt;Found what was an issue, I had to move splunklib folder to .../appname/bin folder and move Python Docx module to .../appname/bin/docx and then use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import sys
sys.path.append('./docx')
sys.path.insert(0, './docx')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Aug 2019 10:44:11 GMT</pubDate>
    <dc:creator>seva98</dc:creator>
    <dc:date>2019-08-06T10:44:11Z</dc:date>
    <item>
      <title>How to import custom python module inside app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-import-custom-python-module-inside-app/m-p/428457#M7663</link>
      <description>&lt;P&gt;I have tried importing Python Docx module inside my app, I have uploaded it to .../appname/lib folder and my script inside .../appname/bin couldn't find it.&lt;/P&gt;
&lt;P&gt;Can anyone please share an example on how to upload module to app and import it in python script?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-import-custom-python-module-inside-app/m-p/428457#M7663</guid>
      <dc:creator>seva98</dc:creator>
      <dc:date>2020-06-17T22:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Import custom python module inside app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-import-custom-python-module-inside-app/m-p/428458#M7664</link>
      <description>&lt;P&gt;Found what was an issue, I had to move splunklib folder to .../appname/bin folder and move Python Docx module to .../appname/bin/docx and then use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import sys
sys.path.append('./docx')
sys.path.insert(0, './docx')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Aug 2019 10:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-import-custom-python-module-inside-app/m-p/428458#M7664</guid>
      <dc:creator>seva98</dc:creator>
      <dc:date>2019-08-06T10:44:11Z</dc:date>
    </item>
  </channel>
</rss>

