<?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 Import arcpy modules into Jython in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-arcpy-modules-into-jython/m-p/575939#M45145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a 3rd party scheduling application that my company bought and would like me to try to use for my Python scripts, SQL tasks, jobs, etc. It appears to be Java based and although they claim it can run Python scripts, they based it off of Jython. I downloaded the Jython module, but cannot figure out how to import the arcpy module along with a few others for logging. Has anyone done this and/or can anyone provide some guidance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michelle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Modules importing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from __future__ import absolute_import&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, arcgisscripting, smtplib, sys, os, traceback, time, datetime, logging, logging.handlers, win32api, win32com.client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.MIMEMultipart import MIMEMultipart&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.MIMEBase import MIMEBase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.MIMEText import MIMEText&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.Utils import COMMASPACE, formatdate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email import Encoders&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from time import strftime&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 15:09:24 GMT</pubDate>
    <dc:creator>MichelleBoivin</dc:creator>
    <dc:date>2013-03-08T15:09:24Z</dc:date>
    <item>
      <title>Import arcpy modules into Jython</title>
      <link>https://community.esri.com/t5/python-questions/import-arcpy-modules-into-jython/m-p/575939#M45145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a 3rd party scheduling application that my company bought and would like me to try to use for my Python scripts, SQL tasks, jobs, etc. It appears to be Java based and although they claim it can run Python scripts, they based it off of Jython. I downloaded the Jython module, but cannot figure out how to import the arcpy module along with a few others for logging. Has anyone done this and/or can anyone provide some guidance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michelle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Modules importing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from __future__ import absolute_import&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy, arcgisscripting, smtplib, sys, os, traceback, time, datetime, logging, logging.handlers, win32api, win32com.client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.MIMEMultipart import MIMEMultipart&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.MIMEBase import MIMEBase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.MIMEText import MIMEText&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email.Utils import COMMASPACE, formatdate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from email import Encoders&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from time import strftime&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 15:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-arcpy-modules-into-jython/m-p/575939#M45145</guid>
      <dc:creator>MichelleBoivin</dc:creator>
      <dc:date>2013-03-08T15:09:24Z</dc:date>
    </item>
  </channel>
</rss>

