Skip to content

Commit

Permalink
Fix tile init for CONFIG_FILE move.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboldt committed Oct 12, 2016
1 parent f4bda91 commit 2206389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tile_generator/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def init_cmd(name):
if name is not None:
os.mkdir(name)
os.chdir(name)
if os.path.isfile(CONFIG_FILE):
if os.path.isfile(config.CONFIG_FILE):
print('Already initialized.', file=sys.stderr)
sys.exit(0)
name = os.path.basename(os.getcwd())
template.render(CONFIG_FILE, CONFIG_FILE, { 'name': name })
template.render(config.CONFIG_FILE, config.CONFIG_FILE, { 'name': name })

@cli.command('build')
@click.argument('version', 'patch', required=False)
Expand Down

0 comments on commit 2206389

Please sign in to comment.