Skip to content

Commit 0d1c8a1

Browse files
committed
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.
1 parent 459e3e8 commit 0d1c8a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Fixed:
3131
- [minor] Template responsive: make demo.py work out of the box with it,
3232
by setting the static_files config.ini setting to "static".
3333
Footer: link fixed and hardcoded last modfied date removed. (Bernhard Reiter)
34-
- demo.py tracker home is configurable, its location is printed and
35-
the directory is fully erased when nuking (anatoly techtonik)
34+
- demo.py print location of tracker home and fully erase its directory
35+
when nuking (anatoly techtonik)
3636
- demo.py changing hostname in config.ini actually changes the address
3737
where demo.py listens. (John Rouillard)
3838

roundup/demo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from roundup.scripts import roundup_server
1616

1717
# Path where demo instance files will be stored
18-
TRACKER_HOME = os.path.join(os.path.dirname(__file__), 'demo')
18+
TRACKER_HOME = os.path.abspath('demo')
1919

2020
def install_demo(home, backend, template):
2121
"""Install a demo tracker
@@ -116,6 +116,8 @@ def install_demo(home, backend, template):
116116

117117
def run_demo(home):
118118
"""Run the demo tracker instance from its ``home`` directory"""
119+
print "Demo Tracker Home:", home
120+
119121
cfg = configuration.CoreConfig(home)
120122
url = cfg["TRACKER_WEB"]
121123
hostname, port = urlparse.urlparse(url)[1].split(':')

0 commit comments

Comments
 (0)