I have a script that I run from a GUI. The GUI is run in ArcGIS and basically, the first parameter can accept a file already embedded in ArcMap or I can use a explorer dialogue to navigate to the file locations.
If I use the option to choose the embedded file, then it only returns the file name:
i.e. 'SOIL_LINES'
If I use the navigation option, then it returns the file name and it's fill path:
C:\SOIL\SOIL_LINES.shp
I would like to test the input parameter to see if the file is just the file name or if it also includes the full path. I eventually need to parse out the path in option 2 to isolate the file name itself. That part I have figured out already.
I've used os.path.isfile but that will return the file in both scenarios because they are both considered a file.
Thanks, Mike