path Questions

6

Solved

I'd like to construct an absolute path in python, while at the same time staying fairly oblivious of things like path-separator. edit0: for instance there is a directory on the root of my filesyste...
Brosy asked 2/7, 2013 at 15:2

12

Solved

I have downloaded the maven 3.5.0 from here. I have set it in the path: C:\apache-maven-3.5.0 Then i treid to add it to the path of Windows 7 as below: Right click on my computer Properties Adv...
Banzai asked 15/7, 2017 at 15:1

5

Solved

I've already tried pip install wget in my cmd, which reads >pip install wget Requirement already satisfied: wget in c:\users\user\...\python\python38-32\lib\site-packages (3.2) however when I t...
Noisome asked 5/7, 2020 at 11:6

8

I want to use caffe.draw to draw the caffe net by anaconda python on mac. But I got the error like this: File "python/draw_net.py", line 45, in <module> main() File "python/draw_net.py", l...
Scapegoat asked 25/10, 2016 at 15:19

3

Is there any straightforward way to get URL path segment without any additional data (url parameters, css '#', etc.) for example: full URL: http://example.com/panel/list path segment I want to get...
Moonlighting asked 11/3, 2017 at 13:15

5

Solved

Is there a way to extract the file name from the file full path (part of a file path) without the hassle of manipulating string? The equivalent in Java would be: File f = new File ("C:/some_dir/a...
Weigand asked 30/3, 2010 at 21:16

5

Solved

I have a python project (which I run within a virtualenv) and that has the following structure: Project ├───.git ├───venv └───src ├───__init__.py ├───mymodules │ ├───__init__.py │ ├───module1....
Kempf asked 23/11, 2015 at 2:40

12

Solved

How can I get the file name from an absolute path in Nodejs? e.g. "foo.txt" from "/var/www/foo.txt" I know it works with a string operation, like fullpath.replace(/.+\//, ''), b...
Photopia asked 6/11, 2013 at 11:57

12

Solved

I am trying to open the file recentlyUpdated.yaml from my Python script. But when I try using: open('recentlyUpdated.yaml') I get an error that says: IOError: [Errno 2] No such file or directory: ...
Abruzzi asked 30/8, 2012 at 17:1

39

Solved

I tried following the instructions given on the Jupyter Notebook documentation. Unfortunately, I haven't been able to figure it out. Where exactly is this "start in" field? I've a windows 7 (64 b...
Heterochromosome asked 7/2, 2016 at 14:43

5

I recently installed OSX and Ubuntu on different computers. I then attempted to install redis and foreman for both OS's. Both errors threw no flags, and seemed to execute successfully. However, whe...
Stegodon asked 12/6, 2014 at 6:8

11

Solved

I often find myself writing R scripts that generate a lot of output. I find it cleaner to put this output into its own directory(s). What I've written below will check for the existence of a direct...
Rowlett asked 18/11, 2010 at 15:53

2

Why would you want to show a file/folder dialog on the server-side? I'm building a project that is intended to be ran locally (both the Node server-side part and client-side in the browser), where...
Banbury asked 2/8, 2018 at 14:1

7

Solved

I'm very new to using linux as my primary OS. Yesterday I just did a clean install of ubuntu on my pc. I after that I started setting up my desktop. Anything necessary is being installed to run flu...
Enlarger asked 10/2, 2020 at 7:29

13

I want to modify the Windows PATH variable using setx. The following works at least 50% of the time on Windows 8: setx PATH %PATH%;C:\Python27\;C:\Python27\Scripts\ If it gives the error "the...
Sewn asked 10/10, 2013 at 4:56

9

Solved

I want to write a command line application on my Ubuntu machine but I encountered a problem when I was installing the dart sdk of dart 2 on linux mint 19. After the installation I can't run the pu...
Suzan asked 11/7, 2018 at 21:20

13

Solved

What is the best way to compare two paths in .Net to figure out if they point to the same file or directory? How would one verify that these are the same: c:\Some Dir\SOME FILE.XXX C:\\\SOME DIR...
Ovenbird asked 8/9, 2011 at 8:7

15

Solved

I have read several answers on how to set environment variables on OSX permanently. First, I tried this, How to permanently set $PATH on Linux/Unix but I had an error message saying no such file an...
Gosnell asked 17/3, 2014 at 21:2

27

Solved

I'd like to get the full file path, from a URI. The URI isn't a Image, but it's a music file, but if i do it like the MediaStore Solution, it won't work if the app user selects eg Astro as browser,...
Hyalite asked 3/11, 2012 at 13:10

35

Solved

Or more generally, how do I remove an item from a colon-separated list in a Bash environment variable? I thought I had seen a simple way to do this years ago, using the more advanced forms of Bash...
Haubergeon asked 15/12, 2008 at 23:19

4

Solved

I have the following code from Codeigniter index.php My understanding is that, If / of string position in $system_folder (in this case CIcore_1_7_1) is false, and if realpath function exists AND ...
Blowbyblow asked 1/10, 2009 at 20:59

16

I recently have been moving a bunch of MP3s from various locations into a repository. I had been constructing the new file names using the ID3 tags (thanks, TagLib-Sharp!), and I noticed that I was...
Diagnosis asked 21/11, 2008 at 17:4

5

Let's say I have the following directory structure: parent_dir/ foo_dir/ foo.py bar_dir/ bar.py If I wanted to import bar.py from within foo.py, how would I do that?
Titi asked 22/4, 2012 at 22:57

12

Solved

I am using Node.js, and I want to obtain the parent directory name for a file. I have the file "../test1/folder1/FolderIWant/test.txt". I want to get "FolderIWant". I have tried: var path = req...
Messily asked 22/3, 2017 at 15:29

16

I have recently upgraded to Windows 10 from Windows 8.1. Now I wanted to set an environment variable for my new installation of Apache Maven. Each time I created the user variable, things were fine...
Varityper asked 28/12, 2015 at 9:54

© 2022 - 2025 — McMap. All rights reserved.