Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
425cce29
Commit
425cce29
authored
Nov 02, 2023
by
Petr Pacner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added checking of the uname - just logging.debug
parent
148f0b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
shell.py
hdlmake/util/shell.py
+8
-1
No files found.
hdlmake/util/shell.py
View file @
425cce29
...
...
@@ -28,7 +28,7 @@ import os
import
sys
import
platform
import
logging
from
subprocess
import
PIPE
,
Popen
,
CalledProcessError
from
subprocess
import
PIPE
,
Popen
,
CalledProcessError
,
getstatusoutput
commands_os
=
'auto'
...
...
@@ -100,6 +100,13 @@ def check_windows_commands():
"""Check if we are using windows commands (del/type) and not a unix shell.
False on cygwin"""
if
commands_os
==
'auto'
:
status
,
_
=
getstatusoutput
(
"uname"
)
if
status
:
logging
.
debug
(
"The uname command exists"
)
else
:
logging
.
debug
(
"The uname command does not exists"
)
return
platform
.
system
()
==
'Windows'
else
:
return
commands_os
==
'windows'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment