tagged [path]

Relative imports for the billionth time

Relative imports for the billionth time I've been here: - [http://www.python.org/dev/peps/pep-0328/](http://www.python.org/dev/peps/pep-0328/)- [http://docs.python.org/2/tutorial/modules.html#packages...

Adding Python to PATH on Windows

Adding Python to PATH on Windows I've been trying to add the Python path to the command line on Windows, yet no matter the method I try, nothing seems to work. I've used the `set` command, I've tried ...

4 Nov at 07:12

Batch files: List all files in a directory with relative paths

Batch files: List all files in a directory with relative paths Concerning Windows batch files: Is there a way to list all the files (or all of a specific type) in a certain directory and its subdirect...

20 Sep at 09:44

How to permanently set $PATH on Linux/Unix

How to permanently set $PATH on Linux/Unix On Linux, how can I add a directory to the $PATH so it remains persistent across different sessions? #### Background I'm trying to add a directory to my path...

18 Sep at 18:8

Convert a str to path type?

Convert a str to path type? I am trying to interface with some existing code that saves a configuration, and expects a file path that is of type `path.path`. The code is expecting that the file path i...

22 Jul at 17:54

Where can I set path to make.exe on Windows?

Where can I set path to make.exe on Windows? When I try run `make` from cmd-console on Windows, it runs Turbo Delphi's `make.exe` but I need MSYS's `make.exe`. There is no mention about Turbo Delphi i...

17 Jun at 14:49

Python Setup Disabling Path Length Limit Pros and Cons?

Python Setup Disabling Path Length Limit Pros and Cons? I recently installed Python 3.7 and at the end of the setup, there is the option to "Disable path length limit". I don't know whether or not I s...

14 May at 02:45

How can I compare (directory) paths in C#?

How can I compare (directory) paths in C#? If I have two `DirectoryInfo` objects, how can I compare them for semantic equality? For example, the following paths should all be considered equal to `C:\t...

3 Apr at 12:5

Accessing nested JavaScript objects and arrays by string path

Accessing nested JavaScript objects and arrays by string path I have a data structure like this : ``` var someObject = { 'part1' : { 'name': 'Part 1', 'size': '20', 'qty' : '50' }, '...

9 Mar at 11:18

How to add a set path only for that batch file executing?

How to add a set path only for that batch file executing? Basically, I know I can go through my control panel and modify the path variable. But, I'm wondering if there is a way to through batch progra...

How to ensure there is trailing directory separator in paths?

How to ensure there is trailing directory separator in paths? I'm having an issue with `AppDomain.CurrentDomain.BaseDirectory`. Sometimes the path ends with '', sometimes it doesn't and I can't find a...

12 Jan at 13:40

Change file name of image path in C#

Change file name of image path in C# My image URL is like this: I want to change it so it looks like this: Is there any short way to do it?

29 Nov at 11:3

Why am I getting a FileNotFoundError?

Why am I getting a FileNotFoundError? I'm trying to write a simple program to read a file and search for a word then print how many times that word is found in the file. Every time I type in "test.rtf...

4 Oct at 18:50

When should I use File.separator and when File.pathSeparator?

When should I use File.separator and when File.pathSeparator? In the `File` class there are two strings, [separator](http://docs.oracle.com/javase/8/docs/api/java/io/File.html#separator) and [pathSepa...

13 Aug at 18:43

Adding a directory to the PATH environment variable in Windows

Adding a directory to the PATH environment variable in Windows I am trying to add `C:\xampp\php` to my system `PATH` environment variable in Windows. I have already added it using the dialog box. But ...

Does Java have a path joining method?

Does Java have a path joining method? ### Exact Duplicate: [combine paths in java](https://stackoverflow.com/questions/412380/) I would like to know if there is such a method in Java. Take this snippe...

20 Jun at 09:12

How to open my files in data_folder with pandas using relative path?

How to open my files in data_folder with pandas using relative path? I'm working with pandas and need to read some csv files, the structure is something like this: > folder/folder2/scripts_folder/scri...

20 Jun at 09:12

__FILE__ macro shows full path

__FILE__ macro shows full path The standard predefined macro `__FILE__` available in C shows the full path to the file. Is there any way to short the path? I mean instead of I see or

30 Mar at 16:39

Given a filesystem path, is there a shorter way to extract the filename without its extension?

Given a filesystem path, is there a shorter way to extract the filename without its extension? I program in WPF C#. I have e.g. the following path: and I want to extract `hello` from it. The path is a...

How to import a CSS file in a React Component

How to import a CSS file in a React Component I want to import a CSS file into a react component. I've tried `import disabledLink from "../../../public/styles/disabledLink";` but I get the error below...

26 Jan at 16:55

Setting up enviromental variables in Windows 10 to use java and javac

Setting up enviromental variables in Windows 10 to use java and javac I got a new laptop with Windows 10 and I want to set it up so I can use `java` and `javac` from the command line. I have searched ...

How to update PATH variable permanently from Windows command line?

How to update PATH variable permanently from Windows command line? If I execute `set PATH=%PATH%;C:\\Something\\bin` from the command line (`cmd.exe`) and then execute `echo %PATH%` I see this string ...

30 Oct at 08:42

adb is not recognized as internal or external command on windows

adb is not recognized as internal or external command on windows I set the `c:/android-sdk/tools` path to the path environment and commands like `emulator` is working just fine. But the `adb` command ...

27 Sep at 04:8

Warning in Resharper "Return value of pure method is not used"

Warning in Resharper "Return value of pure method is not used" I have a quick question regarding a warning that I am getting from Resharper in Visual studio on a c# project that I am working. The warn...

24 Sep at 05:7

Relative paths in Visual Studio

Relative paths in Visual Studio I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This p...

10 Sep at 03:35