fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28eed14
)
Make deploy search in config dir first.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 8 Jun 2010 09:50:23 +0000
(11:50 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 8 Jun 2010 09:50:23 +0000
(11:50 +0200)
deployment.py
patch
|
blob
|
history
diff --git
a/deployment.py
b/deployment.py
index
f19a25f
..
8f06d76
100644
(file)
--- a/
deployment.py
+++ b/
deployment.py
@@
-74,9
+74,11
@@
class DeploySite(object):
self.restart_app()
def find_resource(self, path):
- full_path = os.path.join(self.env['APP_DIR'], path)
- if os.path.isfile(full_path):
- return full_path
+ for dir in (self.env['CONFIG_DIR'], self.env['APP_DIR']):
+ full_path = os.path.join(dir, path)
+ if os.path.isfile(full_path):
+ return full_path
+
raise ValueError("Resource '%s' not found" % path)
@classmethod