I'm in one location i.e. 'c:/program files/java' and I want to jump two levels down without having to specify the subfolders i.e. I want to move to 'c:/program files/java/7.0/jre/bin' without specifying '/7.0/'.
A snippet I'm using is:
import os
os.chdir('c://program files//java')
os.getcwd()
'c:/program files/java'
Now I want to use os.chdir() to move to '/7.0/jre' so os.getcwd() is 'c://program files//java/7.0/jre'
without having to specify '7.0' i.e. os.chdir('.\**7.0**\jre')
Does anyone have any suggestions?