Questions tagged [path]
The general form of a file or directory name that specifies a unique location in a file system. In many Linux and Unix-like OS the PATH (all upper case) variable specifies the directories where executable programs are searched for.
18,334
questions
1
vote
1
answer
19
views
Group path by filename from two list in Python
Given two list which contain full path to multiple files
list1=['fow/fol/TWO_BB_P3.xml', 'fow/fol/N0_AG_ES.xml','fow/fol/TWO_AG_GH.xml', 'fow/fol/TWO_AG_EY.xml']
and
list2 =['gt/so/TWO_AG_EY.txt','gt/...
0
votes
1
answer
11
views
Get all sub-subdirectories with same name
this is probably a dup but I couldn't find a suitable answer anyway.
I have a folder organized like this:
user $ pwd
/Users/user/project
user $ ls
dirA dirB dirC dirD dirPPPSN dirCH23
and in each one ...
0
votes
1
answer
15
views
SVG curved area path (M C) - don't end at start (cut)
I have this SVG path:
<svg viewBox="0 0 500 500">
<path fill="red" d="
M 326 147
C 329 135 345 130 355 137
C 376 150 385 188 362 197
...
0
votes
0
answers
10
views
regex expression not working in PathMatcher pattern
I am doing a java class based RouteLocator configuration for my spring cloud gateway. I have the below patterns to match:
.route("menu_import_route", p -> p
.path(
...
0
votes
0
answers
5
views
Tracking object in video and plot path of object
I have one video and in that video, I am tracking a car's particular point the video and I got success in that one
but I want to plot that (point on a vehicle) point's path at the same on video. How ...
1
vote
1
answer
29
views
require file from another path in Lua
The problem is that i cant find the lua file to use.
the filesystem looks like this:
`|-- plugin
'|-- functions
' -- helpers.lua
|-- tests
'|-- integration
'|-- unit
' --...
0
votes
0
answers
15
views
Unexpected behaviour with '\d+' regex pattern in glob.glob() [duplicate]
The goal is to output the name of devices mounted in the cluster like '\dev\spdk\nvme1n1', '\dev\spdk\nvme2n1', etc.
I have used two regex patter but only the first one is working.
Could you please ...
-2
votes
1
answer
20
views
Place a series or ordered pairs in connecting order [closed]
Let's say I have an unlimited number of ordered pairs that are in no order, but I want to reassemble the list so that the pairs are in order. How would I go about doing that?
For example:
(a,b)
(c,d)
(...
1
vote
0
answers
34
views
SyntaxError when pip install pip ( def read(rel_path: str))
when using pip I get the following warning:
$ pip install pip
Requirement already satisfied (use --upgrade to upgrade): pip in /usr/lib/python2.7/site-packages
You are using pip version 8.1.2, however ...
0
votes
0
answers
11
views
Alternative to matplotlib.path.contains_points to mask an array from a vector of coordinates
I have a template array filled with NaNs that I want to mask. To create the mask, I have boundary points that were created through QGIS, they represent borders of glaciers (https://github.com/...
-2
votes
0
answers
16
views
Why do I receive a "no such file or directory" error when opening path?
Here's the code:
from pathlib import Path
path1=Path(r"Users\me\Desktop\Python\Files\mbox-short.txt")
fhand=open(path1)
I receive a 'no such file or directory' error.
0
votes
1
answer
17
views
Thymeleaf doesn't show images
I'm showing images from resources/static/images/
The weird thing is if I give the path like "/images/milk.png", it shows the image but if I get name from ${}, it doesn't work.
<img class=&...
0
votes
1
answer
13
views
How can I save my processed images in an output folder to be as sorted as they are in the input folder?
I tried to get the edges of some images and output them in a separate folder, but the output files do not correspond to the input files. Please, how can I correct this?
Below is my code:
import glob
...
0
votes
0
answers
7
views
Flutter : Resource and asset merger: Can't determine type for tag '<external-path name="external_files" path="."/>'
I am developing an app with InAppWebview package in Flutter 3.0. In this package we can't access file in webview in android device. That's why I added provider in AndroidManifest.xml file and add a ...
0
votes
1
answer
15
views
Cannot Access the Local Host on Python 127.0.0.1:8000 in browser
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('products/'),include('products.urls') #this line
]
Hi,anyone. ...
0
votes
0
answers
12
views
FileNotFound Exception Raised When Reading Using No Path [duplicate]
When I use no path for ex.
filename = 'cats.txt'
with open(filename) as f:
contents = f.read()
print(contents)
When I execute this code I receive a filenotfound error even though this file is ...
0
votes
1
answer
16
views
Simplify Path directory problem with stack
I need to implement a function to simplify the path of a directory for example "/home//foo/"
need to be "/home/foo", i need to delete all the duplicate slashes but it removes all ...
0
votes
2
answers
42
views
How to set Get-Date format as variable but get up to date time in function
I'm trying to store a get-date format as a variable so it's at the top of the file but be able to have it get an up to date get-date in functions using the variable name. Example:
$LogDir = "...
0
votes
0
answers
19
views
SwiftUI scale path when Image size change
in my project i'm drawing a box over a an image using a custom drawing gesture.
Image(uiImage: image!)
.resizable()
.scaledToFit()
.onTouch(...
-1
votes
1
answer
19
views
hallway problem - is there a way to solve in python?
hallway problem picture
There is a some rooms and a hallway. Two of the rooms are connected to the hallway. Each of those rooms have one room connected to them. Those have no connections to the ...
1
vote
2
answers
21
views
Matlab paths and file handling with packages and class folders
So I have the following (simplified) project structure.
scripts/
client.m
src/
+estimators/
@estimator1/
3party/
shell_script.sh
estimator1.m
...
0
votes
0
answers
32
views
Intellij Run/Debug Configuration change ../bin/java
Our java sdk include custom bash script for run a java application.
Intellij default configuration for java application call this command:
JDK_PATH/bin/java -ALL_PARAMETERS
I change this like
...
-1
votes
0
answers
6
views
Get the handle of the driver using GUID in python
How to call a driver using GUID as their input to get the path and handle of the driver
0
votes
0
answers
16
views
I can not get the full path of a file uploaded in nodejs
I am testing it with postman the image is uploaded to the backend but I can not get the file name
this is the error
TypeError: Cannot read properties of undefined (reading 'path')
at uploadAvatar (/...
1
vote
1
answer
24
views
Get the value of /page/2 rather than using /page?id=2
I am using a razor page and want to get the value from the path. What is the correct way to do this using the razor page or do I have to parse the Http URL?
[HttpGet("{id}")]
public ...
0
votes
0
answers
11
views
Windows 10 keeps deleting my recently added environment variable path
So I just added a path in the environment variable, I clicked apply, after that I re-checked it again, and the path I recently added is not there, do any of you guys have any idea to fix this.
Thanks! ...
-1
votes
1
answer
26
views
Spring Boot trouble by deployment on Tomcat Server 8.5
i have troubles by deployment my Spring Boot Project on Tomcat Server 8.5.
This project work fine in Eclipse on local Tomcat but after deployment on global Tomcat Server i see error 404
enter image ...
-1
votes
0
answers
25
views
113. Path Sum II - One 'return' makes a big difference?
I am trying to figure out why my dfs/backtracking is not acting properly when I add a 'return' in the recursion. When a return is added and based on the system print, it looks like the backtracking is ...
-1
votes
1
answer
18
views
Next.js: _Middleware with NextResponse blocks images from rendering
This question extends this question. The _middleware in Next.js with import { NextResponse } from "next/server"; can be used for JWT authentication but blocks all the routes including images....
0
votes
1
answer
17
views
How to change images' paths to make my frontend build work?
I'm using Gulp as a task runner.
Here I try to use BEM methodology.
All my BEM blocks are in 'library.blocks'.
In each of my blocks there's an html file that being included into index.html (it's done ...
0
votes
0
answers
12
views
How to animate an svg along path with conditional pausing using animateMotion and ReactJs?
I am trying to animate an svg element along an svg path, but it needs to pause multiple times at certain positions and continue when click a button.
I made an svg path, here is the code
<path d=&...
-2
votes
0
answers
18
views
Python relative package import
I know there're tons of questions about relative import in python, but none of them work with my script.
Here's my project directory tree:
project\
Enums\
Candle.py
Trader\
...
1
vote
1
answer
20
views
Why my router.push is ignoring part of my route path? VueJs
I'm new at Vue.js, and I'm trying to use router.push in my button to link it to my route, but, when I click it, it just ignores part of the string that I've put into it as part of the raw route path:
...
2
votes
2
answers
59
views
Get list of all file names in a directory with its original in folder order
I want to get the list of all file names in a directory but the order of files matters to me. (And I'm using Google Colab if that matters)
P.S: I've accepted the first answer, but just in case know ...
0
votes
0
answers
6
views
the Resource File path is not equals to the file path of the task [closed]
资源文件列表
资源文件列表路径
调度任务获取时发生路径不一致.
调度任务获取的路径
the file path of resources is not consistent with the file path of the task
-1
votes
0
answers
7
views
Visual Studio Code Python Hello.py path issues
I just started learning Python. I am trying to run the basic hello.py script. For some reason my path is C:\user\owner>
How can I change my file path generally to C:?
-1
votes
0
answers
39
views
Directory path python
I am trying to write a code for a path to a directory that does not include a drive name. I don't want anything that starts with 'C:/'. We have a directory name we will say 'Spiers' with files in it. ...
0
votes
0
answers
7
views
Juniper: How to see OSPF routes that didn't make the routing table
I have a specific scenario:
There are 2 paths leading to a given OSPF prefix:
-Both of the paths are learnt via OSPF
-Prefix CIDRs are the same size
-Both OSPF "preference" value is ...
1
vote
1
answer
31
views
How do I send my output xls files to a specific path in python?
How do i make my df.to_excel function write to an output path? After my script runs, I do not see the files in the output_path directory i have defined.
import pandas as pd
from openpyxl import ...
0
votes
0
answers
14
views
sh command is not executing in jenkins pipeline project
While executing the sh command in jenkins pipeline project, we are getting an an error like below and sh command is not working.
Error message:
[Pipeline] sh
Warning: JENKINS-41339 probably bogus PATH=...
0
votes
0
answers
9
views
Shibboleth Path exclusion
We have a web site that is using shibboleth. I need to exclude a portion from being protected.
So far the only way I can get this to work is by excluding an entire top level directory.
If I exclude ...
0
votes
0
answers
28
views
'/snap/bin' is not included in the PATH environment variable
I am trying to install flutter on Ubuntu and when i ran flutter, i got following error
Command 'flutter' is available in '/snap/bin/flutter'
The command could not be located because '/snap/bin' is not ...
0
votes
0
answers
34
views
Opencv does not read file in a different directory
I get an error like down below:
[ WARN:0@23.978] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('C:/Users/deniz/OneDrive/Desktop/...
0
votes
1
answer
37
views
How to GetForegroundWindow From Path Program
When I use Process.Start(Path); Sometimes the program does not appear in the foreground, but it does appear in the taskbar To solve this problem, I must use the "AutoItX" reference to show ...
0
votes
0
answers
15
views
How to format tkinter filedialog.askdirectory() Path to work similar to a hardcoded filepath?
I am using the following code to retrieve the directory path:
from tkinter import filedialog
from tkinter import *
root = Tk()
root.withdraw()
input_folder = filedialog.askdirectory()
And try to ...
0
votes
0
answers
10
views
A JNI error has occured Exception in thread "main" java.lang.IllegalArgumentException: Error decoding percent encoded characters
After compiling the java file using javac I'm getting this error while executing the class file using java. I don't know what is the error is. I've tried reinstalling the jdk and also updated the jdk ...
0
votes
2
answers
31
views
ImportError and ModuleNotFoundError: how to get a script running from the command line?
I have a project with the following structure:
HorticulturalSalesPrediction/
Docker
HorticulturalSalesPrediction_API/
optimization/
__init__.py
optuna_optim.py
...
0
votes
0
answers
28
views
Use for loops to iterate over my directory
I am trying to iterate over a number of folders with sub-folders that contain my images
here's How my folders/sub-folders are set
#Folders
Original Dataset Folder (that contains all the following)
...
1
vote
1
answer
26
views
How can I move my Selenium chrome driver to the PATH on Windows 10?
I have been trying to set up selenium, python, and whenever I test the code it says that the files must be in path, and I don't know how to move it there. This is the error I get:
https://i.stack....
0
votes
1
answer
82
views
What is causing this common OpenCV error for me (!_src.empty() in function 'cv::cvtColor')
This was the code I was running:
import cv2
img = cv2.imread("news.jpg")
cv2.imshow("Gray", img)
cv2.waitKey(2000)
cv2.destroyAllWindows()
This was the error that I got:
...