Mercurial > p > roundup > code
diff roundup/demo.py @ 4764:d273e59b487b
roundup.demo: Use relative tracker home directory
Introduced in commit a0654b1283a4 when it was not known
that source demo.py is copied to roundup.demo during the
build phase. demo.py migrated to roundup.demo in the
previous commit.
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Thu, 21 Feb 2013 19:08:40 +0300 |
| parents | 57b9f2848cf8 |
| children | 9db31cba6e0b |
line wrap: on
line diff
--- a/roundup/demo.py Thu Feb 21 18:57:05 2013 +0300 +++ b/roundup/demo.py Thu Feb 21 19:08:40 2013 +0300 @@ -15,7 +15,7 @@ from roundup.scripts import roundup_server # Path where demo instance files will be stored -TRACKER_HOME = os.path.join(os.path.dirname(__file__), 'demo') +TRACKER_HOME = os.path.abspath('demo') def install_demo(home, backend, template): """Install a demo tracker @@ -116,6 +116,8 @@ def run_demo(home): """Run the demo tracker instance from its ``home`` directory""" + print "Demo Tracker Home:", home + cfg = configuration.CoreConfig(home) url = cfg["TRACKER_WEB"] hostname, port = urlparse.urlparse(url)[1].split(':')
