Skip to content

Commit e5e790d

Browse files
committed
fix args bug
1 parent 83867cc commit e5e790d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

pbpy/pbunreal.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,17 +1173,18 @@ def clear_cook_cache():
11731173
def build_shaders(platform: str = "PCD3D_SM6"):
11741174
uproject_path = get_uproject_path()
11751175
project_name = uproject_path.stem
1176-
project_path = uproject_path.parent
1176+
project_path = str(uproject_path.parent)
1177+
args = [
1178+
str(get_editor_path()),
1179+
str(get_uproject_path()),
1180+
"-run=ShaderPipelineCacheTools",
1181+
"expand",
1182+
f"{project_path}/Saved/StagedBuilds/Windows/{project_name}/Saved/CollectedPSOs/*.rec.upipelinecache",
1183+
f"{project_path}/Saved/Shaders/{platform}/*.shk",
1184+
f"{project_path}/Build/Windows/PipelineCaches/PSO_{project_name}_{platform}.spc",
1185+
]
11771186
pbtools.run_stream(
1178-
[
1179-
get_editor_path(),
1180-
get_uproject_path(),
1181-
"-run=ShaderPipelineCacheTools",
1182-
"expand",
1183-
f"{project_path}/Saved/StagedBuilds/Windows/{project_name}/Saved/CollectedPSOs/*.rec.upipelinecache"
1184-
f"{project_path}/Saved/Shaders/{platform}/*.shk",
1185-
f"{project_path}/Build/Windows/PipelineCaches/PSO_{project_name}_{platform}.spc",
1186-
],
1187+
args,
11871188
logfunc=lambda x: pbtools.checked_stream_log(
11881189
x, error="Error: ", warning="Warning: "
11891190
),

0 commit comments

Comments
 (0)