working-directory Questions
14
Solved
I'm writing some unit tests for my application in Go. The tests fail however because it cannot find the configuration files. Normally the binary looks for the configuration files in the working dir...
Milline asked 24/5, 2014 at 15:58
4
I've been trying to set the default working directory in VS Code, when a workspace is not open, to the directory where the file being executed is.
This is the normal behaviour in other IDEs, like P...
Pearman asked 1/6, 2021 at 8:46
6
Solved
I am trying to read a file which I read previously successfully.
I am reading it through a library, and I am sending it as-is to the library (i.e. "myfile.txt").
I know that the file is read from t...
Sanies asked 26/1, 2011 at 17:17
7
Solved
I have a common command that gets called from within very specific directories. There is only one executable sitting in /bin for this program, and the current working directory is very important fo...
Isreal asked 12/5, 2012 at 18:58
18
Solved
I am working out some tutorials in R. Each R code is contained in a specific folder. There are data files and other files in there. I want to open the .r file and source it such that I do not have ...
Repine asked 2/12, 2012 at 19:10
0
While watching folder which has subfolders using Chokidar,The watch folder cannot be renamed.
Versions:
Chokidar version: 3.5.2
Angular CLI: 12.0.2
Node: 16.17.0
Package Manager: np...
Pomelo asked 8/5, 2023 at 6:47
4
I am using mysql command line client under Linux to work with MySQL database. How can I change current working directory? I did not find it in the documentation.
EDIT: This is not duplicate of t...
Funeral asked 13/7, 2016 at 7:30
5
Solved
I run a python shell from crontab every minute:
* * * * * /home/udi/foo/bar.py
/home/udi/foo has some necessary subdirectories, like /home/udi/foo/log and /home/udi/foo/config, which /home/u...
Bova asked 16/9, 2009 at 13:21
9
Solved
So I want to migrate from Spyder to VSCode, and I come across this problem where I cannot access a dataset as my working directory is not the same as the dataset's path.
launch.json is not auto-ge...
Odel asked 26/6, 2019 at 15:40
3
Solved
I try to organized my Python projects using a folder structure. When I need to make tests I use something like the following.
.
|-- src
| |-- b.py
| `-- main.py
`-- tests
`-- test_main.py
There i...
Ohmage asked 21/7, 2021 at 21:53
14
Solved
I have a several Makefiles in app specific directories like this:
/project1/apps/app_typeA/Makefile
/project1/apps/app_typeB/Makefile
/project1/apps/app_typeC/Makefile
Each Makefile includes a ....
Caseate asked 8/8, 2013 at 22:2
4
Solved
I've created a new GitHub repository.
I'm quite confused by working directory and local repository.
When working on my own, my stuff all resides on working directory.
But when work with repo, I sho...
Translucid asked 11/2, 2014 at 2:58
2
Solved
I am trying to execute a child process in a different directory then the one of its parent.
var exec = require('child_process').exec;
exec(
'pwd',
{
cdw: someDirectoryVariable
},
function(e...
Bryan asked 19/9, 2013 at 12:18
7
Solved
What is current directory of shell script? Is this current directory from which I called it? Or this directory where the script is located?
Sheet asked 27/3, 2012 at 12:55
34
Solved
Is there a different way, other than process.cwd(), to get the pathname of the current project's root-directory. Does Node implement something like ruby's property, Rails.root,. I'm looking for som...
Heck asked 22/4, 2012 at 6:39
5
I have Python 2.7 installed at C:\Python27 and I have added the path C:\Python27\; to the environment variables and .py: to PATHEXT. I am able to launch Python.
I downloaded a folder google-python-...
Hankins asked 5/12, 2015 at 19:19
3
Solved
What is the command to set startup directory in Git Bash?
When I start Git Bash, the startup directory is Bitbust directory in C drive, so I must change the working directory with cd command.
But...
Memorialist asked 4/12, 2018 at 5:16
9
Solved
When I start GVim and start writing my little program I'd like to save the file to the Desktop but it seems that Vim is starting the command line in:
C:\Windows\System32
How would I go about chang...
Marcasite asked 25/7, 2009 at 1:54
16
I would like to see what is the best way to determine the current script directory in Python.
I discovered that, due to the many ways of calling Python code, it is hard to find a good solutio...
Laurettalaurette asked 15/9, 2010 at 14:34
4
Solved
I have the following pytest directory structure:
system_tests/
├── conftest
├── pytest.ini
│
├── suite_1/
│ └── test_A.py
│
└── suite_2/
└── sub_suite_2a/
└── test_B.py
When each test me...
Obadias asked 27/5, 2020 at 13:40
3
Solved
I have a small "dev.bat" batch file on my PATH which I run to switch to my development project directory in W:\. This works fine from CMD but not when run from PowerShell (or PWSH).
I have no othe...
Adolescence asked 16/4, 2019 at 11:25
8
I have a server on which I have a bare repository for pushing. However, my server needs to have a working copy of the master branch.
How do I get a working copy and that only from a bare repositor...
Drippy asked 16/9, 2012 at 20:0
5
Solved
I have a Windows service that should look for a configuration file in its current directory.
So I use directory.getcurrentdirectiry() but instead of the service directory I get back
c:\windows\s...
Elgin asked 29/4, 2012 at 21:41
10
Solved
I use R under Windows on several machines.
I know you can set the working directory from within an R script, like this
setwd("C:/Documents and Settings/username/My Documents/x/y/z")
... but the...
Chosen asked 8/9, 2009 at 17:42
5
Solved
My book states:
Every program that runs on your computer has a current working directory, or cwd. Any filenames or paths that do not begin with the root folder are assumed to be under the current ...
Lutes asked 9/8, 2017 at 13:0
1 Next >
© 2022 - 2024 — McMap. All rights reserved.