Skip to content

Commit ffb8b48

Browse files
committed
Let .mit.edu cert renewal script work when called from other directories.
1 parent 9f59257 commit ffb8b48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

renew_mit_certs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515

1616
NON_SCRIPTS_VHOSTS_ALIAS = ["sipb.mit.edu"]
1717

18-
1918
def get_expiring_certs():
2019
"""
2120
Most of this function is from find_expiring_certs.py
2221
"""
2322
# load turbogears config, required for vhosts.connect to work
24-
config = appconfig('config:' + os.path.abspath('development.ini'))
23+
config = appconfig('config:' + os.path.abspath(os.path.dirname(__file__) + '/development.ini'))
2524
load_environment(config.global_conf, config.local_conf)
2625

2726
now = datetime.utcnow()

0 commit comments

Comments
 (0)