Commit 1c5a58d2 authored by Patrick Godwin's avatar Patrick Godwin

fix issues with finding static files

parent 2464eb36
......@@ -76,5 +76,6 @@ def main(args=None):
generate_cgi_script(content_type, output_dir, extension=extension)
### copy over static files
static_dir = pkg_resources.resource_filename('datamon', 'static/')
#static_dir = pkg_resources.resource_filename('datamon', 'static/')
static_dir = pkg_resources.resource_filename(pkg_resources.Requirement.parse('datamon'), 'datamon/static')
shutil.copytree(static_dir, os.path.join(output_dir, 'datamon_static'))
from setuptools import setup
import os
from setuptools import setup, find_packages
setup(
name = 'datamon',
description = 'Data monitoring and visualization tools',
version = '0.1.0',
author = 'Patrick Godwin',
author_email = 'patrick.godwin@ligo.org',
url = 'https://git.ligo.org/gstlal-visualisation/gstlal-datamon.git',
license = 'GPLv2+',
try:
os.symlink('../data', 'datamon/data')
setup(
name = 'datamon',
description = 'Data monitoring and visualization tools',
version = '0.1.0',
author = 'Patrick Godwin',
author_email = 'patrick.godwin@ligo.org',
url = 'https://git.ligo.org/gstlal-visualisation/gstlal-datamon.git',
license = 'GPLv2+',
packages = [
'datamon',
],
packages = find_packages(),
package_data = {
'static': ['static/*.js', 'static/*.css', 'static/*.png']
},
package_data = {
'datamon': ['static/*']
},
entry_points={
'console_scripts': [
'datamon = datamon.__main__:main',
],
},
)
entry_points={
'console_scripts': [
'datamon = datamon.__main__:main',
],
},
)
finally:
os.unlink('datamon/data')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment