<?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>idea Disable path consolidation for a single line in code in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/disable-path-consolidation-for-a-single-line-in/idi-p/1119722</link>
    <description>&lt;P&gt;When I publish a Python toolbox and reference a file on the server's file system, I need to register a folder in Data Stores otherwise the file (from my local machine) will be &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/essential-vocabulary-for-geoprocessing-packages.htm#GUID-5B9719C4-5FA8-4517-B868-633C898D034C" target="_self"&gt;consolidated&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I would like to suggest introducing a mechanism so a developer can force having resources referenced removing the need to register folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It could be as simple as a comment (which the parser will identify) similar to &lt;A href="https://pylint.pycqa.org/en/latest/faq.html#is-there-a-way-to-disable-a-message-for-a-particular-module-only" target="_self"&gt;pylint&lt;/A&gt; or other tools. Below a quick example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import json
# ...

DATASOURCE_CONFIG_FILE = r"f:\geoportal\data.json"  # esri: disable=consolidate

class Tool(object):
    # ...

    @staticmethod
    def read_datasources():
        """ Read datasource config file. """
        with open(DATASOURCE_CONFIG_FILE, "r") as config_file:
            return json.load(config_file)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Links&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.8/publish-services/windows/authoring-geoprocessing-tasks-with-python-scripts.htm" target="_blank" rel="noopener"&gt;Authoring geoprocessing tasks with Python scripts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.8/manage-data/windows/registering-your-data-with-arcgis-server-using-manager.htm#ESRI_SECTION1_6C5F8400F19E4094B06235BC17F06DE7" target="_blank" rel="noopener"&gt;Register your data with ArcGIS Server using Server Manager&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://gis.stackexchange.com/questions/417143/reading-local-file-from-geoprocessing-service-on-arcgis-server" target="_blank" rel="noopener"&gt;Reading local file from Geoprocessing Service on ArcGIS Server&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pylint.pycqa.org/en/latest/faq.html#is-there-a-way-to-disable-a-message-for-a-particular-module-only" target="_blank" rel="noopener"&gt;Frequently Asked Questions - Pylint 2.11.2-dev0 documentation&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 24 Nov 2021 14:41:07 GMT</pubDate>
    <dc:creator>Thomas_Z2</dc:creator>
    <dc:date>2021-11-24T14:41:07Z</dc:date>
    <item>
      <title>Disable path consolidation for a single line in code</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/disable-path-consolidation-for-a-single-line-in/idi-p/1119722</link>
      <description>&lt;P&gt;When I publish a Python toolbox and reference a file on the server's file system, I need to register a folder in Data Stores otherwise the file (from my local machine) will be &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/essential-vocabulary-for-geoprocessing-packages.htm#GUID-5B9719C4-5FA8-4517-B868-633C898D034C" target="_self"&gt;consolidated&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I would like to suggest introducing a mechanism so a developer can force having resources referenced removing the need to register folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It could be as simple as a comment (which the parser will identify) similar to &lt;A href="https://pylint.pycqa.org/en/latest/faq.html#is-there-a-way-to-disable-a-message-for-a-particular-module-only" target="_self"&gt;pylint&lt;/A&gt; or other tools. Below a quick example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import json
# ...

DATASOURCE_CONFIG_FILE = r"f:\geoportal\data.json"  # esri: disable=consolidate

class Tool(object):
    # ...

    @staticmethod
    def read_datasources():
        """ Read datasource config file. """
        with open(DATASOURCE_CONFIG_FILE, "r") as config_file:
            return json.load(config_file)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Links&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.8/publish-services/windows/authoring-geoprocessing-tasks-with-python-scripts.htm" target="_blank" rel="noopener"&gt;Authoring geoprocessing tasks with Python scripts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.8/manage-data/windows/registering-your-data-with-arcgis-server-using-manager.htm#ESRI_SECTION1_6C5F8400F19E4094B06235BC17F06DE7" target="_blank" rel="noopener"&gt;Register your data with ArcGIS Server using Server Manager&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://gis.stackexchange.com/questions/417143/reading-local-file-from-geoprocessing-service-on-arcgis-server" target="_blank" rel="noopener"&gt;Reading local file from Geoprocessing Service on ArcGIS Server&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://pylint.pycqa.org/en/latest/faq.html#is-there-a-way-to-disable-a-message-for-a-particular-module-only" target="_blank" rel="noopener"&gt;Frequently Asked Questions - Pylint 2.11.2-dev0 documentation&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 24 Nov 2021 14:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/disable-path-consolidation-for-a-single-line-in/idi-p/1119722</guid>
      <dc:creator>Thomas_Z2</dc:creator>
      <dc:date>2021-11-24T14:41:07Z</dc:date>
    </item>
  </channel>
</rss>

