Skip to content

Commit

Permalink
Merge pull request #9 from stefaneng/root-directory-rc
Browse files Browse the repository at this point in the history
Set default root directory in correct location
  • Loading branch information
metajack committed Jun 25, 2014
2 parents aec2802 + 22bd9b5 commit f1e8560
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tape
Expand Up @@ -136,6 +136,7 @@ def parse_config_files(options):
config.add_section('server')
config.add_section('proxies')
config.set('server', 'port', '8273')
config.set('server', 'root', '.')

files = ['%s/.taperc' % os.environ['HOME'], '.taperc']
if options.config:
Expand All @@ -146,8 +147,6 @@ def parse_config_files(options):
# update config with command line options
if options.root:
config.set('server', 'root', options.root)
else:
config.set('server', 'root', '.')
if options.port:
config.set('server', 'port', options.port)
if options.proxies:
Expand Down

0 comments on commit f1e8560

Please sign in to comment.