Hello,
ArcGIS Pro installs a Python Command Prompt shortcut in startup which is handy. Launching it results in a command line that looks like this:
with the arcgispro-py3 environment and the directory shown. What is the best procedure for modifying the startup to default to a different directory, say...c:\temp for example instead of C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3? I peaked inside the batch (bat) files associated with the shortcut and saw nothing obvious to a person illiterate in batch language, and did not want to break anything, so could use some help.
Thank you,
Tyler
ArcGIS Pro 3.1.0
You could create your own shortcut that calls C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\proenv.bat and set the shortcut start in directory to whatever you want.
You'll need to set the path to two files for ArcGIS pro's conda-
@echo off
REM Temporarily set the paths to esri's conda
SET PATH=%PATH%;C:\Program Files\ArcGIS\Pro\bin\Python\Scripts;C:\Program Files\ArcGIS\Pro\bin\Python\condabin
REM Replace "your_env_name" with the name of your Conda environment
CALL conda.bat activate your_env_name
REM Change the path to the folder you want to start in
cd %USERPROFILE%\Documents
REM Add any Python script execution or other commands you want to run after activating the environment and changing the directory.
cmd.exe /k