I'm using arcgis pro 3.5.2 and python 3.11.11
The following is how i set up the inital code:
# locations of the working stratigraphy data
working_strat_data_location = arcpy.GetParameterAsText(0)
arcpy.env.workspace = os.path.join(working_strat_data_location, "geodatabase_name.gdb")
arcpy.env.overwriteOutput = True
However, when i add a folder paths like: "C:\Users" or "\\NETWORK_1\folder1\folder2\" into a string parameter in the custom script tool, i even tried setting the paramter as a folder. This was not working or it was not setting the workspace to this location.
The only way i got it to work was using this:
arcpy.env.workspace = r"NETWORK_1\folder1\folder2\geodatabase_name.gdb"
I know the "r" isn't needed as in the past I've been told to never use it, but I want to know what I'm missing in the first block of code.
I'm replacing an old workflow from desktop 10.0 (no longer supported) by creating this custom tool that I'm trying to get to work in Pro. This first step is essential.