Posts

Showing posts with the label path

Sharing PATH Variable Windows Subsystem for Linux (WSL) [on hold]

Sharing PATH Variable Windows Subsystem for Linux (WSL) [on hold] So I am trying to link the PATH variables for Java (and Python) to the Windows Linux bash shell I've tried following the directions on here: https://blogs.msdn.microsoft.com/commandline/2017/12/22/share-environment-vars-between-wsl-and-windows/ for /p with the path that I already have on windows: C:Program Files (x86)Common FilesOracleJavajavapath C:Program Files (x86)Common FilesOracleJavajavapath I did everything the same except first define TRANSLATABLEPATH as my the linux mnt path and then when im in cmd, the windows path What am I doing wrong? Edit: See comment but I basically set TRANSLATABLEPATH and export WSLENV=TRANSLATABLEPATH/p Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit th...

How to fix this errror builtins.TypeError: expected str, bytes or os.PathLike object, not builtin_function_or_method

How to fix this errror builtins.TypeError: expected str, bytes or os.PathLike object, not builtin_function_or_method I have a code that allow user to select from desired path folder and display in a QlistWidget the existing docx files. The problem is that the when the user select a file the system must return the full path of the file. But instead it display the below error: builtins.TypeError: expected str, bytes or os.PathLike object, not builtin_function_or_method i know that the error is in FileListSelected function in this line : p = pathlib.Path(self.fullPath.index) but do not know how to fix it. examples this is the result of the CheckPath print: where these are the existing files in the Download directory. ========================================= ========================================= ========================================= code: from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import (QMimeData) from PyQt5.QtWidgets import (QApplication, QCheckBox, QColo...