relative-path Questions

2

In my ASP 4.6 application I have: app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "Feature Toggle API V1"); }); When I run it on localhost:5000/swagger/v1/swagger.json i...
Cataclysm asked 28/4, 2017 at 12:0

5

Solved

I am automatically creating a PDF from some of our reports in a month-end process. I am running into a problem where ReportViewer.LocalReport can't find my report. Within the project, the report fi...
Ides asked 23/4, 2010 at 21:28

2

We're developing an app that needs to run on a removable device (e.g. USB stick). On Linux, we're using Gnome launchers to place a shortcut to the app on the root of the device. However, we need to...
Packet asked 28/9, 2010 at 8:40

5

Solved

I have the following file structure: rootDIR dir1 subdir1 file0.php file1.php dir2 file2.php file3.php file4.php file1.php requires file3.php and file4.php from dir2 like this : requi...
Joline asked 18/10, 2012 at 12:24

5

Solved

Given two absolute paths, e.g. /a/path/to/a /a/path/to/somewhere/else How can I get a relative path from one to the other, ../a? In a sense, the opposite of what realpath does.
Gomorrah asked 14/3, 2015 at 23:34

1

Solved

// html data loaded from [http://example.org/some/path] let htmlSource = `<!DOCTYPE html><html><head></head><body> ... <a href="relative"></a> ... </b...
Earwax asked 19/3, 2019 at 0:58

7

I need a function that given a relative URL and a base returns an absolute URL. I've searched and found many functions that do it different ways. resolve("../abc.png", "http://example.com/path/thi...
Extracurricular asked 7/8, 2009 at 7:25

1

I'm working on a Flask app that uses url_for to specify the route to some static assets (js, css, etc). Here's an example from one of the templates: <script src='{{ url_for('static', filename='...
Apophysis asked 12/3, 2018 at 0:37

3

Solved

I tried to link with the html file name, but it works because they are on the same folder. [Title](./this-is-the-file.html) But it is possible that another article would appear on another folder...
Disraeli asked 18/2, 2014 at 22:42

5

Solved

Consider: stuff/ __init__.py mylib.py Foo/ __init__.py main.py foo/ __init__.py script.py script.py wants to import mylib.py. This is just an example, but really I just want to do a relati...
Adverb asked 11/1, 2011 at 8:19

4

Solved

I have this conundrum I can't solve after many tryouts: I'm unable to load static images in production; everything is fine while developing (npm run serve), even when serving files from dist ...
Gottlieb asked 11/1, 2019 at 15:32

3

I need to reference patients.json from patients.go, here's the folder structure: If I do: filepath.Abs("../../conf/patients.json") it works for go test ./... but fails for revel run If I do: ...
Miscellany asked 25/6, 2015 at 19:21

5

I am trying to generate a spreadsheet in .NET which will be opened by my manager on his iPad when he's out of the office. The spreadsheet opens fine on a Windows PC, but when trying to open on the...
Vacant asked 7/6, 2012 at 9:23

2

Solved

We're developing a Play 2.4 application (Java API). For dev purposes, we'd like to use a persistent H2 database with DB file path relative to the project root directory. In How to use a persisten...
Ladino asked 2/6, 2015 at 12:30

6

Solved

How do I use a relative path in Xcode project settings?
Faunia asked 13/9, 2009 at 5:30

8

Solved

I have xml files that contain href file paths to images (e.g. "....\images\image.jpg"). The hrefs contain relative paths. Now, I need to extract the hrefs to the images and turn them into absolute ...
Moia asked 25/1, 2011 at 16:40

2

Solved

Juypter notebook currently has a limitation: Starting terminal in current directory How do I do this from command-line (no Anaconda or other GUI), without the following unacceptable hacky approach...

2

On my node server, the following code works axios.get('http://localhost:8080/myPath') // works But relative pathes don't work axios.get('/myPath') // doesn't work I get this error : messag...
Dyer asked 23/10, 2018 at 11:8

0

My access to the filesystem for our web server starts one folder deeper than the web server's root. So relative paths in our HTML look like this, for example: <link href="/division/css/style.cs...
Bespeak asked 12/10, 2018 at 0:15

2

Solved

Let's say you have a module which contains myfile = open('test.txt', 'r') And the 'test.txt' file is in the same folder. If you'll run the module, the file will be opened successfully. No...
Stanwinn asked 16/4, 2012 at 12:37

22

Solved

How do I import a Python module given its relative path? For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py? Here's a visual represe...
Selfseeker asked 10/11, 2008 at 21:28

1

Before I ask this question I want to point out that there are several similar questions posted here on StackOverflow, but none of them provide an accurate solution to the problem. The problem I ...
Douglas asked 29/10, 2014 at 17:0

3

Solved

I'm stuck! xD I've been working on a Rails project and am having trouble accessing my assets using relative paths. A friend of mine is working on the html/css side of things while I'm handling the ...

1

Solved

I'm using Github-pages with no Jekyll, just bare markdown .md files. To link from that .md to some folder inside my repo I'm using relative links. Why relative links? I was using absolute links l...

7

Solved

A. What does this do? require ("./file.php"); B. in comparison to this? require ("file.php"); (Its not up-one-directory.. which would be) require ("../file.php");
Duda asked 23/2, 2009 at 21:11

© 2022 - 2024 — McMap. All rights reserved.