Skip to content

Commit

Permalink
If there's a definitions dir below us, cd into it
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 10, 2016
1 parent 2644bcb commit 92727a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ybd/__main__.py
Expand Up @@ -30,6 +30,10 @@


print('')
if not os.path.exists('./VERSION'):
if os.path.basename(os.getcwd()) != 'definitions':
if os.path.isdir(os.path.join(os.getcwd(), 'definitions')):
os.chdir(os.path.join(os.getcwd(), 'definitions'))
app.setup(sys.argv)
app.cleanup(app.config['tmp'])
app.cull(app.config['artifacts'])
Expand Down

0 comments on commit 92727a5

Please sign in to comment.