File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
import pkg_resources
24
24
import sys
25
25
26
- sys .path .insert (0 , os .path .abspath ( '..' ))
26
+ sys .path .insert (0 , os .path .dirname ( __file__ ))
27
27
28
28
29
29
# -- General configuration ------------------------------------------------
60
60
61
61
# General information about the project.
62
62
setup_cfg = configparser .ConfigParser ()
63
- setup_cfg .read ('../ setup.cfg' )
63
+ setup_cfg .read (os . path . join ( os . path . dirname ( __file__ ), ' setup.cfg') )
64
64
project = setup_cfg ['metadata' ]['name' ]
65
65
author = setup_cfg ['metadata' ]['author' ]
66
66
description = setup_cfg ['metadata' ]['description' ]
70
70
# built documents.
71
71
72
72
spec = importlib .util .spec_from_file_location (
73
- '_version' , '../ gwcelery/_version.py' )
73
+ '_version' , os . path . join ( os . path . dirname ( __file__ , ' gwcelery/_version.py') )
74
74
module = importlib .util .module_from_spec (spec )
75
75
spec .loader .exec_module (module )
76
76
parsed_version = pkg_resources .parse_version (module .get_versions ()['version' ])
Original file line number Diff line number Diff line change 1
1
celery[redis]==4.4.2
2
2
matplotlib
3
+ p_astro
3
4
safe_netrc
4
5
sphinx>=2.0
You can’t perform that action at this time.
0 commit comments