(argPath,currDir)
| 52 | return((validPath,simpPath)) |
| 53 | |
| 54 | def absolutePath(argPath,currDir): |
| 55 | |
| 56 | if argPath[0] == '/': |
| 57 | fullPath = argPath |
| 58 | elif currDir == '/': |
| 59 | fullPath = '/'+argPath |
| 60 | else: |
| 61 | fullPath = currDir+'/'+argPath |
| 62 | |
| 63 | if len(fullPath) > 1 and fullPath[-1] == '/': |
| 64 | fullPath = fullPath[:-1] |
| 65 | |
| 66 | return(fullPath) |
| 67 | |
| 68 | |
| 69 | if __name__ == "PyDOS": |