Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
Ticket #1821: cooperate_with_dot_directories
| File cooperate_with_dot_directories,
672 bytes
(added by Felix.Schwarz, 4 years ago) |
|
Patch was produced using Mercurial queues, so please apply with "patch -p1"
|
| Line | |
|---|
| 1 | diff -r 2ea0ce363cae turbogears/testutil.py |
|---|
| 2 | --- a/turbogears/testutil.py Tue Apr 29 12:19:14 2008 +0200 |
|---|
| 3 | +++ b/turbogears/testutil.py Wed May 21 11:40:17 2008 +0200 |
|---|
| 4 | @@ -40,8 +40,9 @@ if os.path.exists(os.path.join(cwd, "tes |
|---|
| 5 | for w in os.walk(cwd): |
|---|
| 6 | if w[0].endswith("config"): |
|---|
| 7 | config_dir = w[0].replace(cwd, "")[1:] |
|---|
| 8 | - modulename = "%s.app" % config_dir.replace(os.sep, ".") |
|---|
| 9 | - break |
|---|
| 10 | + if not config_dir.startswith("."): |
|---|
| 11 | + modulename = "%s.app" % config_dir.replace(os.sep, ".") |
|---|
| 12 | + break |
|---|
| 13 | update_config(configfile=os.path.join(cwd, "test.cfg"), |
|---|
| 14 | modulename=modulename) |
|---|
| 15 | else: |
|---|
Download in other formats: