Open
Conversation
sol87
reviewed
Nov 3, 2019
| assets_data, input_dir = get_input_data() | ||
| show_dir = input("请选择项目路径>>>>>>>>>>>") | ||
| # r'C:\Users\geyij\Desktop\new\AssetIO\example\project\TDC' | ||
| show_name = show_dir.rpartition('\\')[-1] |
Contributor
There was a problem hiding this comment.
show_name = os.path.basename(show_dir)
| :param directory: | ||
| :return: | ||
| """ | ||
| if not os.path.exists(directory): |
Contributor
There was a problem hiding this comment.
os.path.isdir(directory)会优于 os.path.exists
| input_dir = input("请选择客户文件路径>>>>>>>>>>") | ||
| # r'C:\Users\geyij\Desktop\new\AssetIO\example\project\Inbox\20191001' | ||
| input_data = {} | ||
| for a, b, c in os.walk(input_dir): |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DONE:
用户输入客户发来文件夹路径 找出路径下的资产文件并获取文件名,文件路径,资产类型信息
用户输入要存入资产的项目路径 并检查对应路径是否为空 非空备份文件 然后复制到对应路径
将此次传入进来的资产信息存入json文件
TODO:
用户选择要导出给客户的资产名 找到最新版文件 按客户格式存储到outbox路径
想把整个代码搬到maya里 加上给资产文件截图功能
加上UI