Python Scrypt to step back a directory

Discussion created by tivelp on Sep 14, 2011
Latest reply on Sep 15, 2011 by rdharles
I would like to step back a directory in python without having to prompt the user to do it in my script. For example the user selects a dataset here C:\Projects\test\database.mdb\dataset to run a process on. I then want the database that the dataset is in to be compacted without prompting the user for the database as well. Basically I want to know what the python version of cd.. is