Skip to content

Commit

Permalink
Fixed location of configs
Browse files Browse the repository at this point in the history
  • Loading branch information
shntnu committed Aug 12, 2016
1 parent 25f43ec commit 8d8de2c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include config/*

File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions perturbation/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def seed(config, input, output):
into(csv_filename=pattern_csv, output=output, table_name=pattern, table_number=table_number)


config_file_sys = pkg_resources.resource_filename(pkg_resources.Requirement.parse("perturbation"), "config/config_htqc.ini")
logging_config_file_sys = pkg_resources.resource_filename(pkg_resources.Requirement.parse("perturbation"), "config/logging_config.json")

config_file_sys = pkg_resources.resource_filename(__name__, "config/config_htqc.ini")
logging_config_file_sys = pkg_resources.resource_filename(__name__, "config/logging_config.json")
munge_file = pkg_resources.resource_filename(__name__, "scripts/munge.sh")
@click.command()
@click.argument('input', type=click.Path(dir_okay=True, exists=True, readable=True))
@click.help_option(help='')
Expand Down Expand Up @@ -138,7 +138,7 @@ def main(configfile, input, loggingconfigfile, output, verbose, skipmunge):

if not skipmunge:
logger.debug('Calling munge')
subprocess.call([pkg_resources.resource_filename(pkg_resources.Requirement.parse("perturbation"), "munge.sh"), input])
subprocess.call([munge_file, input])
logger.debug('Completed munge')
else:
logger.debug('Skipping munge')
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def run_tests(self):
cmdclass={
'test': Test
},
package_data={
'perturbation' :['config/*.ini', 'scripts/*.sh'],
},
packages=setuptools.find_packages(
exclude=[
'test'
Expand Down

0 comments on commit 8d8de2c

Please sign in to comment.