Apologies for what might seem simple but...
In ArcMap, it was simple to call a python script from another using execfile()
I need to recreate that in Pro but nothing I try works. It doesn't matter if I'm calling a .py file or an embedded python script in a project toolbox.
Some things I have tried:
from "//spatialfiles2.bcgov/work/FOR/RNI/DPG/!Tenures/Templates/ExhibitA.Pro/Python/ExportPDF.py" import pdf
or
sys.path.append('\\spatialfiles2.bcgov\work\FOR\RNI\DPG\!Tenures\Templates\ExhibitA.Pro\Python')
import ExportPDF.py
This is the path to my toolbox:
\\spatialfiles2.bcgov\work\FOR\RNI\DPG\!Tenures\Templates\ExhibitA.Pro\ArcGIS_Pro.atbx