Why use relative versus absolute paths?
Using absolute paths, the following are true: You can move the document or toolbox anywhere on your computer and the data will be found when you reopen the document or tool. On most personal computers, the location of data is usually constant. That is, you typically don’t move your data around much on your personal computer. In such cases, absolute paths are preferred. You can reference data on other disk drives. Using relative paths, these adjustments are necessary: When moving a map document or toolbox, you must also move the referenced data. When delivering documents, toolboxes, and data to another user, relative paths should be used. Otherwise, the recipient’s computer must have the same directory structure as yours. For example, consider the directory structure below. In this example, D:\Tools\Toolboxes\Toolbox1 contains a script tool that uses D:\Tools\Scripts\MyScript.py.
Related Questions
- What are the relative merits of IPXI bringing a patent to market as a ULR contract versus traditional in-house licensing programs?
- What are the relative merits of bringing a patent to market as a ULR contract versus selling it outright?
- Does anyone have a different view on the relative position going forward of radio versus television?