579 ) |
579 ) |
580 |
580 |
581 @classmethod |
581 @classmethod |
582 def runtime_dir(cls): |
582 def runtime_dir(cls): |
583 """run time directory for pid file...""" |
583 """run time directory for pid file...""" |
584 return env_path('CW_RUNTIME', cls.RUNTIME_DIR, 'run time') |
584 return env_path('CW_RUNTIME_DIR', cls.RUNTIME_DIR, 'run time') |
585 |
585 |
586 @classmethod |
586 @classmethod |
587 def registry_dir(cls): |
587 def registry_dir(cls): |
588 """return the control directory""" |
588 """return the control directory""" |
589 return env_path('CW_REGISTRY', cls.REGISTRY_DIR, 'registry') |
589 return env_path('CW_INSTANCES_DIR', cls.REGISTRY_DIR, 'registry') |
590 |
590 |
591 @classmethod |
591 @classmethod |
592 def instance_data_dir(cls): |
592 def instance_data_dir(cls): |
593 """return the instance data directory""" |
593 """return the instance data directory""" |
594 return env_path('CW_INSTANCE_DATA', |
594 return env_path('CW_INSTANCES_DATA_DIR', |
595 cls.INSTANCE_DATA_DIR or cls.REGISTRY_DIR, |
595 cls.INSTANCE_DATA_DIR or cls.REGISTRY_DIR, |
596 'additional data') |
596 'additional data') |
597 |
597 |
598 @classmethod |
598 @classmethod |
599 def migration_scripts_dir(cls): |
599 def migration_scripts_dir(cls): |
600 """cubicweb migration scripts directory""" |
600 """cubicweb migration scripts directory""" |
601 return env_path('CW_MIGRATION', cls.MIGRATION_DIR, 'migration') |
601 return env_path('CW_MIGRATION_DIR', cls.MIGRATION_DIR, 'migration') |
602 |
602 |
603 @classmethod |
603 @classmethod |
604 def config_for(cls, appid, config=None): |
604 def config_for(cls, appid, config=None): |
605 """return a configuration instance for the given application identifier |
605 """return a configuration instance for the given application identifier |
606 """ |
606 """ |