This is probably a pretty basic question, but how do you set relative paths in Python?
The script sits in a folder called SDE. It is run from a toolbox also located in the SDE folder. It needs to recognize data within folders that are also located in the SDE folder (horizontal to the script in the directory tree). Any Suggestions? I've tried just about every combination of ../ and ./ in front of filepaths in the script to no avail. Maybe it's not that easy??
Unfortunately, this is quite difficult to accomplish in 9.3.1, but in 10.0 you can use the __file__ global in script tools to determine the folder a script is running in. The same __file__ global can be used in script tools in 9.3.1, but only if the script is marked to run out of process (in the properties dialog).