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

Commit ab93c13

Browse files
committed
Fix getExeExtension()
1 parent 1a3910d commit ab93c13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/app/openleetcode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ def run(command):
3333
def getExeExtension():
3434
if os.name == 'posix':
3535
return ""
36-
else:
36+
elifos.name=='nt':
3737
return ".exe"
38+
else:
39+
return ""
3840

3941
def main():
4042
parser = argparse.ArgumentParser(

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /