Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5067

finding parent folder name from script

$
0
0

hello Experts,

I can get the absolute file path from script by simplifyFilename(get_filename(piport) t). but once I get the full path like /parent1/parent2/parent3/.../parent9/parent10/script_file, how can I easily get the last two parent folder names (i.e., parent9 and parent10 here)?

thanks,

David


Viewing all articles
Browse latest Browse all 5067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>