Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please make options['location'] modifiable #5

Open
fdiary opened this issue Mar 3, 2011 · 0 comments
Open

please make options['location'] modifiable #5

fdiary opened this issue Mar 3, 2011 · 0 comments

Comments

@fdiary
Copy link

fdiary commented Mar 3, 2011

Hello,

Curently options['location'] is hardcoded in recipe/cmmi/init.py, but I think that we have no reason to make it modifiable.

--- recipe/cmmi/__init__.py.orig
+++ recipe/cmmi/__init__.py
@@ -15,9 +15,9 @@
         self.buildout = buildout
         self.name = name

-        options['location'] = os.path.join(
+        options['location'] = options.get('location', os.path.join(
             buildout['buildout']['parts-directory'],
-            self.name)
+            self.name))
         options['prefix'] = options.get('prefix', options['location'])
         options['url'] = options.get('url', '').strip()
         options['path'] = options.get('path', '').strip()

With this change, we can specify location as we wish in buildout configuration.

Regards,
Kazuhiko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant