skip to Main Content

[Environment]::SetEnvironmentVariable Docker on Windows

In my dockerfile I have the line RUN [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:oracleinstantclient_19_10", "Machine") I get this returned, even though when I run the above command in PowerShell everything "just works" At line:1 char:114 + ... = 'SilentlyContinue'; [Environment]::SetEnvironmentVariable(Path, $e ...…

VIEW QUESTION

Python mimetypes on Windows missing some extensions – Ubuntu

I want mimetypes library to return mimetype from file name. For example: >>> mimetypes.types_map['.docx'] 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' But, currently I got an exception: >>> mimetypes.types_map['.docx'] Traceback (most recent call last): File "<console>", line 1, in <module> KeyError: '.docx' Also I tried guess_type…

VIEW QUESTION
Back To Top
Search