Commits

Anonymous committed 305e327

add necessary hooks for new endpoint

Comments (0)

Files changed (2)

     # Scan the input for package information
     # to grab any data files (text, images, etc.)
     # associated with sub-packages.
-    package_data=find_package_data(PROJECT, 
+    package_data=find_package_data(PROJECT,
                                    package=PROJECT,
                                    only_in_packages=False,
                                    ),
         'virtualenvwrapper.pre_activate': [
             'user_scripts = virtualenvwrapper.user_scripts:pre_activate',
             ],
+        'virtualenvwrapper.pre_activate_lookup': [
+            'user_scripts = virtualenvwrapper.user_scripts:pre_activate_lookup',
+            ],
         'virtualenvwrapper.post_activate_source': [
             'user_scripts = virtualenvwrapper.user_scripts:post_activate_source',
             'project = virtualenvwrapper.project:post_activate_source',

virtualenvwrapper/user_scripts.py

     return
 
 
+def pre_activate_lookup(args):
+    log.debug('pre_activate_lookup')
+    run_global('pre_activate_lookup', *args)
+    return
+
+
 def pre_activate(args):
     log.debug('pre_activate')
     run_global('preactivate', *args)