dapgy@yahoo.com wrote:[color=blue]
> Does someone have the Python code to pull just the filename and
> extension from the end of an absolute path please.
>
> Thanks in advance ...[/color]
# Here you go...
import os.path
# Example path
p1 = "C:\\WINDOWS\\s ystem32\\Direct X\\Dinput\\mse. ini"
# This will return: 'mse.ini'
os.path.basenam e(p1)
"""
You can read more about manipulating file paths by reading the Python
documentation under "6.2 os.path -- Common pathname manipulations".
Comment