Skip to content

Instantly share code, notes, and snippets.

@PeterHajdu
Created March 29, 2011 13:28
Show Gist options
  • Save PeterHajdu/892343 to your computer and use it in GitHub Desktop.
Save PeterHajdu/892343 to your computer and use it in GitHub Desktop.
import os
curr_dir = os.getcwd()
while curr_dir!="/" and not os.path.isfile( os.path.join( curr_dir, ".proj.sf" ) ):
print( curr_dir )
( curr_dir, temp ) = os.path.split( curr_dir )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment