506 questions
2
votes
1
answer
106
views
Why is std::filesystem::current_path() not able to get current path? [closed]
I'm using VS Code with CMake Tools extension on Ubuntu.
This C++ program produces the following output when run with "CMake: Debug" (which I select using the Command Palette):
#include <...
1
vote
0
answers
53
views
`tabulapdf::extract_table()` returns error corresponding to working directory
Why does tabulapdf::extract_table() return an error message corresponding to the working directory when the directory and the file exist?
Below is the code where x is the full path to the pdf file. ...
0
votes
1
answer
198
views
std::ifstream can't open file?
I'm writing a program for my laboratory work using C++. But I have a strange problem that I see first time. I can't open my text file using the ifstream::open method.
This simple code doesn't work too:...
0
votes
0
answers
59
views
Comparing hash of a file in git index versus git working directory is inconsistent
I have a git repo with the same file called fileA in two different paths : locationX and location Y.
I am trying to ensure that these two files are identical and if they do/do not match what's been ...
0
votes
1
answer
493
views
I'm trying to solve a captcha image I downloaded by editing a code on github
import keras
import pandas as pd
import numpy as np
import cv2
import glob
import imutils
from imutils import paths
import os
import os.path
import sys
import tensorflow
print(os.getcwd())
os.environ[...
0
votes
0
answers
32
views
How do you create a file directory where you can change file paths for an Android app?
More specifically, how do you create folders that the user can move saved files in and out of by changing paths in an Android app?
For example, a photo gallery app where you can create folders to put ...
1
vote
0
answers
27
views
Can I configure a custom (separate) Downloads folder for web apps that I access via VSCode?
I am testing a web application, which I access with use of VSCode debug tool for Chrome. This allows me to separate the default web browser and the testing web browser.
I was wondering if there's a ...
0
votes
0
answers
199
views
Jupyter Notebooks in VS Code No Longer Recognize Working Directory—Why?
Starting this week, my Jupyter notebooks in VS Code have stopped recognizing the working directory correctly. Previously, everything worked as expected without any manual configuration.
When I run a ...
0
votes
0
answers
57
views
How can a script in R call other scripts without problems with the working directories?
I have a script called Main/Main.R.In a sub folder I have Main/SubFolder/Part1.R, that reads some excels from other folder called Main/Input/Excel.xlsx.
I face the problem when I run in Main.R the ...
0
votes
1
answer
87
views
How to configure VS Code interactive window workingdirectory to a script in a subfolder?
My project is organized as follow:
├── data
│ ├── processed # The final data sets for modeling
│ └── raw # The original data files.
├── src ...
0
votes
1
answer
182
views
How to make Python script use a designated directory as source for imports (from within the script)?
I am currently stuck on a Python issue where I want to import scripts from another directory that is removed from the current one. The import structure is relative in certain scripts, and I do not ...
0
votes
3
answers
89
views
How to get the path of a file without normalisation in ruby?
My current directory path is /a/b/c/
When I do
fname = File.path("../test.rb")
::File.absolute_path(fname)
output is: /a/b/test.rb
What I am expecting is the output something like this: /...
0
votes
1
answer
140
views
How to set the location that JavaCompiler executes from?
I am working with javax.tools.JavaCompiler, using it to programmatically compile Java code from my running Java application. Everything is working great, except that I don't how to execute the ...
0
votes
3
answers
1k
views
Why my program can't find the file when opening .txt files?
I'm currently learning file I/O in C++.
I can open the file by using the full directory of the .txt file which is C:\Users\mfkha\cmsc202\inclass\scores.txt.
The path of the program file is C:\Users\...
-1
votes
1
answer
653
views
Read image from a file using OpenCV
I want to convert PNG type flowchart to the graph by using Graphviz Python Package. Here I have already installed relevant packages by using pip install opencv-python pytesseract graphviz
After I ...