Skip to content

Commit

Permalink
Make settings file work for installs
Browse files Browse the repository at this point in the history
  • Loading branch information
kboone committed Apr 23, 2019
1 parent 8dd8106 commit 91c4c7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions avocado/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
import os

# Figure out the root directory for our package.
dirname = os.path.dirname
package_root_directory = dirname(dirname(os.path.abspath(__file__)))
package_root_directory = os.path.dirname(os.path.abspath(__file__))

# First, load the default settings
default_path = os.path.join(package_root_directory, 'avocado_settings.json')
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
author_email='kboone@berkeley.edu',
license='BSD',
packages=['avocado'],
data_files=[('avocado', ['avocado/avocado_settings.json'])]

)

0 comments on commit 91c4c7f

Please sign in to comment.