-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating configuration files to work with new YAML based config
- Loading branch information
Showing
5 changed files
with
64 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +0,0 @@ | ||
#! /usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
Initialization module for artellapipe-config | ||
""" | ||
|
||
from __future__ import print_function, division, absolute_import | ||
|
||
__author__ = "Tomas Poveda" | ||
__license__ = "MIT" | ||
__maintainer__ = "Tomas Poveda" | ||
__email__ = "tpovedatd@gmail.com" | ||
|
||
import os | ||
import inspect | ||
|
||
|
||
class ArtellaConfigs(object): | ||
|
||
CHANGELOG_FILE_NAME = 'changelog.yml' | ||
CONFIG_FILE_NAME = 'config.yml' | ||
NAMING_FILE_NAME = 'naming.yml' | ||
|
||
def get_configurations_path(self): | ||
""" | ||
Returns path where tpNameIt module is stored | ||
:return: str | ||
""" | ||
|
||
try: | ||
mod_dir = os.path.dirname(inspect.getframeinfo(inspect.currentframe()).filename) | ||
except Exception: | ||
try: | ||
mod_dir = os.path.dirname(__file__) | ||
except Exception: | ||
try: | ||
import tpDccLib | ||
mod_dir = tpDccLib.__path__[0] | ||
except Exception: | ||
return None | ||
|
||
return mod_dir | ||
|
||
def get_changelog_file(self): | ||
""" | ||
Returns path where changelog file is located | ||
:return: str | ||
""" | ||
|
||
from tpPyUtils import path as path_utils | ||
return path_utils.clean_path(os.path.join(self.get_configurations_path(), self.CHANGELOG_FILE_NAME)) | ||
|
||
def get_project_configuration_file(self): | ||
""" | ||
Returns path where project configuration file is located | ||
:return: str | ||
""" | ||
|
||
from tpPyUtils import path as path_utils | ||
return path_utils.clean_path(os.path.join(self.get_configurations_path(), self.CONFIG_FILE_NAME)) | ||
|
||
def get_naming_file(self): | ||
""" | ||
Returns path where naming rules file is located | ||
:return: str | ||
""" | ||
|
||
from tpPyUtils import path as path_utils | ||
return path_utils.clean_path(os.path.join(self.get_configurations_path(), self.NAMING_FILE_NAME)) | ||
59 changes: 59 additions & 0 deletions
59
artellapipe/config/artellapipe-launcher-plugins-dccselector.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Base Configuration file for artellapipe-launcher-plugins-dccselector | ||
|
||
maya: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
plugins: {} | ||
|
||
3ds max: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
plugins: {} | ||
|
||
nuke: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
|
||
houdini: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
|
||
photoshop: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
|
||
zbrush: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
|
||
substance painter: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] | ||
|
||
substance designer: | ||
enabled: False | ||
icon: color/maya | ||
supported_versions: [] | ||
default_version: "" | ||
departments: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Base Configuration file for artellapipe-launcher | ||
|
||
version: 0.0.0 | ||
name: Artella | ||
plugins: [] |
1 change: 0 additions & 1 deletion
1
artellapipe/config/config.yml → artellapipe/config/artellapipe-project.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.