LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  os.path.basename

    Employee
    Posted 02-03-2016 14:43

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: jpstory

    Hi

    Is there any function work similar to os.path.basename in python ?

    It is kinda annoying to use Split function, as there could be more than one "/" and "\" in the full path.


  • 2.  RE: os.path.basename

    Employee
    Posted 02-03-2016 17:50

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    There's no pre-built function. I would use something like regex.
    Attachments:
    getFilename.brg