22,789 questions
0
votes
1
answer
73
views
Python, $PYTHONPATH, sys.path.add()
This code indicates what I wish to do, i.e.
Have a variable to hold the name of a file to import,
Use shutil.which() to look up the FOLDER it resides in (via $PATH),
Automatically get that added to ...
0
votes
0
answers
20
views
Fewer entries in PATH variable when running a cmd command in MSYS2
When I run cmd //C 'echo %PATH%' in an MSYS2 terminal I expect the same output as when I run echo %PATH% in a Windows command prompt. However, the first command shows fewer entries. How come? I'm not ...
0
votes
0
answers
29
views
Conda add custom path to PATH variable
I am trying to setup a custom environment in which I have a bunch of related tools running in conda. This is mostly because part of the tooling I want to have running is actually only reliably ...
1
vote
1
answer
158
views
How can I specify the path to my Python installation through R?
I am trying to install an R package that draws on Python in the background but having issues with R finding the installation of Python. I am working on a Windows machine and have Python 3.14 installed....
Best practices
0
votes
1
replies
35
views
What other paths are there beside file paths and xpath?
I have to make a design decision. I need to describe paths across hierarchical network graphs. In other words: There can always be a next parent, but we don't know. There can also be always a next ...
2
votes
1
answer
109
views
Launching a python script in vscode with arguments I get FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\USERNAME\\FolderName'
I am trying to debug python code in vscode using a launch config that asks for command line arguments.
My script is located here:
C:\Users\USERNAME\FolderName - With Spaces\_MyHome\Documents\Dev\...
1
vote
1
answer
80
views
asp.net tilde ~ paths not resolving on pages with a master page
I have a page Product.aspx that has a master page Main.master, both pages are in the root of the project (they don't belong to any folder). The problem is that the tilde path only works for the Main....
0
votes
1
answer
90
views
Why am I getting BAD_NET_NAME error from WNetUseConnection with IP Address?
Context
I have a function in my app's code that connects (via WNetUseConnection) to a windows fileshare on specified devices on the network the machine that is running the app is connected to. This is ...
0
votes
0
answers
70
views
Maven WAR Plugin Unable to Find Directory
I have a maven-war-plugin configured in my pom.xml. Like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
&...
0
votes
1
answer
113
views
How to handle path on Windows WSL2 in rust? [closed]
Background
I tried to develop a Rust lib to assist with swapping filenames for any two files, but I had problems when I tried to dealing with paths on WSL.
Examples
Normal Situation
File1
File2
Before
...
0
votes
0
answers
148
views
Why is VS Code using a custom $PATH and how to configure it?
When I run VS Code from Ubuntu graphical interface, and do echo $PATH, I see something like
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:...
1
vote
0
answers
62
views
PreEmptive Protection Dotfuscator Can not build when not setting true for autoGenerateIfMissing
I got a problem when trying to integrate Dotfuscator into MSBuild.
<!--Dot obfuscator-->
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<!-- import user ...
1
vote
3
answers
143
views
Validate a globed-like path
I am writing a API for a program. The program has a native support of "globed" paths such as img-0*.png. I would like to know how to be sure that there is at least a file satisfying that ...
0
votes
0
answers
53
views
Zerobrane Path not finding files...how do I set it?
I'm using Zerobrane Studio (2.00; MobDebug 0.803) on Windows 11. When I try to run/debug some code, I get:
: module 'strict' not found:
no field package.preload['strict']
no file '.\strict.lua'...
0
votes
1
answer
61
views
Semantics of POSIX path traversal
It's reasonably well known that POSIX has fairly mad path traversal semantics, mostly due to the existence of symlinks. For example to open("foo/../bar") the kernel can't just open("bar&...
0
votes
1
answer
48
views
I need to understand the path to an image in react-native
I don't know what I am doing wrong with this path in data.js. It worked in another project, but doesn't in this one with image:
require('../../assets/images/icon.png');
This is the folder structure ...
1
vote
1
answer
146
views
TypeScript solution for managing filesystem path structure
This question is all about a good TypeScript solution for managing all your paths of your filesystem structure.
When I came across web-based local applications or website backend pages, to manage the ...
0
votes
2
answers
42
views
How to convert Windows %PATH% to cygwin $PATH in .cshrc/.bashrc?
I would like to automatically have my Windows %PATH% variable converted to $PATH when I enter a cygwin shell (either bash or tcsh), so if I make a path change in Windows, it will automatically be ...
3
votes
1
answer
94
views
Why is appending to User Environment Variable PATH without duplicating is not working for the last path in Windows 11 command line?
I looked through a few solutions here and found an almost working script to append to the user Environment Variable PATH without overwriting the existing path and not clutter it with system's EV's ...
1
vote
1
answer
329
views
handle dbt variables while using sqlfluff
I'm using VS Code on macOS. I installed sqlfluff locally using pip. I also installed it via the extensions UI.
I am trying to format my code manually via the UI. When I select my code, do a left click ...
0
votes
1
answer
46
views
How to write a database query in Node.js/MongoDb using regex that returns a result when a field starts with a given string? [duplicate]
So far I have this code, that attempts to remove a "document" (a path string, like "./documents/images") from a database, as well as all subdocuments (path strings that start with ...
1
vote
0
answers
52
views
Documents folder path discrepancy between Android version (9 et 15)
I'm in testing step of my MAUI application, and I have an issue when testing on a emulated Android 9 (API 28).
I was testing and correcting my code on last Android version (Android 15, API 35), and ...
0
votes
1
answer
95
views
Deleting files based on input to avoid accessing parent folders
I am doing a REST API in Java (although this question may apply to other languages) where I create several local files and directories, and they can be deleted based on input. I manage my files in a ...
0
votes
1
answer
144
views
JAR file can not access to a given directory
I made a Java application that loads image files from a directory called "images".
If I compile and build in this way it works:
javac Swing.java
java Swing
Conversely, if I compile and ...
0
votes
0
answers
107
views
I am trying to use JDK version 1.8.0_202. I updated the .zshrc file to use it but when I run java -version it is showing 24.0.1
My .zshrc file looks like
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
export PATH=$PATH:$JAVA_HOME/bin
~ ...
0
votes
0
answers
37
views
Save file in folder using partial folder name [duplicate]
I created a button that is supposed to allow users to save a copy of the current file in a folder. The path changes, depending on the value of A1.
For example, if A1 is 9999, I want the file to be ...
4
votes
2
answers
142
views
Is it feasible to compute all simple paths between two nodes in a large directed graph (26,000 nodes, 86,000 edges)?
I have a large directed graph (not a DAG) with about 26,000 nodes and 86,000 edges. I want to find all possible simple paths (no repeated nodes) from one given node to another.
How difficult or ...
0
votes
0
answers
38
views
Gitlab lost relative path mapping where repositories actually are located
I do a self hosted Gitlab Omnibus instance running on a bare metal server. Lately I made settings changes due to the Gitaly settings change in the 18.x version. During this time, however, mappings ...
0
votes
0
answers
77
views
Force "os" or "posixpath" to use forward slashes?
To get paths that use forward slash as a path separator, Google AI says to use the posixpath module instead of the os module. However, I find that it still uses backslashes:
>>> import os
&...
1
vote
2
answers
162
views
How to determine if 2 instances of java.nio.file.Path are pointing to the same file?
I have a simple problem -- I have multiple threads that are doing appends to a file, based upon a file name that the user can choose.
At first, I tried to synchronize on instances of Path, but after ...
0
votes
1
answer
196
views
Godot 4, How get the first txt file of a external directory to my game
I tried to read the first text file of my "Download" dir in my godot game but I can't make it works. How I can take only the first text file of a dir and then display the text of the file on ...
0
votes
0
answers
43
views
How do I download JNativeHook correctly in Eclipse IDE?
I wanted to utilize a global keylogger for my project and I went to https://github.com/kwhat/jnativehook/releases for downloading JNativeHook. I downloaded "jnativehook-2.2.2.jar" one and ...
3
votes
1
answer
171
views
__FILE__ without full path
The C++ macro __FILE__ typically includes the full path (with many compilers).
For my tracing, I want just the file name, not the full path.
Is there a built-in macro for this in any version of C++ or ...
1
vote
1
answer
86
views
What does the ';' at the end of the PATH (env var) mean?
I am creating a tool and the tests on Windows do not work correctly. The reason is that there is a ';' at the end of the $PATH (the environment variable). However, in the original $PATH (in the ...
-1
votes
2
answers
111
views
Why does my compiler not find my header path?
I'm working on a project in C++ and I would like to make a query to a database from my code. I installed MySql C++ connector from the MySql site and now I have to specify the path of the folder '...
1
vote
1
answer
63
views
Copying Sheet and Saving in Path of current Workbook
I am trying to create a macro that copies a sheet from my current workbook and saves that sheet as a .csv file in the same path as my current workbook. Any help is appreciated.
Current Code I'm ...
0
votes
1
answer
125
views
Uvicorn reload_excludes not working for one directory but working for another identical directory
I'm running a FastAPI application with uvicorn and using reload_excludes to prevent the server from reloading when files are added to certain directories. The issue is that the exclusion works for one ...
0
votes
1
answer
315
views
Issue with Path in Github Actions using Python
I have a github actions workflow where I run many different files, for which I append to the PYTHONPATH all the paths I need for the scripts to work. To do so, I created another program called ...
0
votes
0
answers
16
views
deployment of applications in unix/linux/bsd and MacOS
I use MacOS for my programming. I like and use the GUI applications that it comes with. But I also do a lot of work with the "terminal" program and use the environmental variables like ...
1
vote
1
answer
92
views
Multiple Python Paths
I have multiple Python Paths to choose from as seen in the images. I remember installing Python via brew and through the internet and Anaconda.
I don't have any idea which are redundant and what to ...
3
votes
4
answers
169
views
Efficiently convert forward slash to back slash in R
My question relates to the following question/answer from 2013:
Efficiently convert backslash to forward slash in R
I posted a question to the solution proposed by 'Arun' and 'flodel' at the link ...
2
votes
1
answer
159
views
How to read an image from a path with Unicode characters in C++?
I am trying to load an image with unicode characters in its path.
cv::imread doesn't take a std::wstring as input, so I tried to convert the wide string to a common string first:
#pragma warning(push)
...
3
votes
2
answers
134
views
How to animate a dot on a path along two intertwined ellipses
I'm trying to create a small animation where a dot would smoothly go along two intertwined ellipses, like
I managed to create an almost-working path using an online tool to turn shapes into a single ...
0
votes
4
answers
137
views
Sort array by filenames independent of path
I have a list of complete filenames stored in an array such as:
./Downloads/epo6700lnx.zip
./Downloads/epo6600lnx.zip
./Desktop/epo6800lnx.zip
./Public/epo6900lnx.zip
I tried reverse sort, but get:
./...
0
votes
0
answers
50
views
How to get a filepath from a unix system using java where the path is {{parameters.secret-path}}/file
Currently there is a unix-based system that exposes a file in what the team is saying would be {{parameters.secret-path}}/file. I am not sure how to read that in java given the enclosing of double ...
0
votes
1
answer
328
views
R Studio cannot find packages even though pathway is correct
R Studio cannot find my packages. During startup, I receive this warning:
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load ...
0
votes
1
answer
57
views
How to fix line issue when clipping in SVG?
As you can see in the image clipping doesn't connect the lines perfectly due to the overlap from the top oval.
<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg">
<!-- Define ...
0
votes
0
answers
42
views
Path Path Copy (pathpathcopy) custom path in Windows for WSL
Path Path Copy (https://github.com/clechasseur/pathcopycopy ) will copy Unix or WSL paths in Windows to the clipboard.
so if a Windows path looks like this:
"C:\Users\abc\Desktop\portable\coding ...
0
votes
1
answer
61
views
Anaconda prompt broken: input line is too long, the syntax of the command is incorrect
After a windows update, I suddenly got this error today when starting the Anaconda Prompt: "input line is too long, the syntax of the command is incorrect". Seems like there is something ...
0
votes
0
answers
25
views
Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! springboot
jakarta.servlet.ServletException: Circular view path [error]: would dispatch back to the current handler URL [/error] again. Check your ViewResolver setup! (Hint: This may be the result of an ...