Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitafc6a15

Browse files
committed
Disabled chmod on Windows
1 parenta8ef770 commitafc6a15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎whitebox/download_wbt.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,16 @@ def safe_extract(
124124
runner_path=os.path.join(exe_dir,runner_name)
125125

126126
# grant executable permission
127-
os.system("chmod 755 "+exe_path)
128-
os.system("chmod 755 "+runner_path)
127+
ifplatform.system()!="Windows":
128+
os.system("chmod 755 "+exe_path)
129+
os.system("chmod 755 "+runner_path)
129130
plugins=list(
130131
set(glob.glob(os.path.join(new_plugin_dir,"*")))
131132
-set(glob.glob(os.path.join(new_plugin_dir,"*.json")))
132133
)
133-
forplugininplugins:
134-
os.system("chmod 755 "+plugin)
134+
ifplatform.system()!="Windows":
135+
forplugininplugins:
136+
os.system("chmod 755 "+plugin)
135137

136138
exe_path_new=os.path.join(pkg_dir,exe_name)
137139
shutil.copy(exe_path,exe_path_new)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp