Questions tagged [relative-path]

Relative-paths are URI or directory links to resources that refer to a location relative to the current path.

A relative path references a resource in relation to a current path or directory; its opposite is an absolute path. Web pages frequently make use of relative paths to refer to resources like images and scripts. The advantage of using a relative path is that it remains valid when the host name or root path changes.

As an example, consider a website located at the URL:

http://www.hostname.com/site/page.html

If the page wants to reference an image located at:

http://www.hostname.com/site/images/image.jpg

It could simply make reference to the relative path images/image.jpg.

2470 questions
0
votes
1 answer

React Router Dom Relative Path

I have an application published in a domain similar to this "www.domain.com/app/client/store" When I developed it at the beginning, it was not contemplated that the domain be that way but something like "www.domain.com" the issue is that it is…
0
votes
1 answer

Angular scss url(), cant resolve relative path when project is build

i have a folder filled with svg's (path: src/assets/icons). The css function url() is implemented like this: url("/assets/icons/CheckSmall.svg"); It finds the svg data, when I run ng serve. But when I build my Project, it cant find the svg data.…
DeeKazing
  • 13
  • 5
0
votes
1 answer

Call python code in VBA: Permission Error

Im trying to Run the python code from the VBA (Run_report.xlsm). My xlsm file and all the py files are in the same directory. Python code has to work on the data which is itself in the Run_report.xlsm file(again this is the file from where i run VBA…
Greencolor
  • 501
  • 1
  • 5
  • 16
0
votes
1 answer

REGEX to match relative urls inside href attribute in a html file

I am making a c# code that converts relative to absolute URLs in href and src attributes of an inputted HTML code in a Richtextbox when the user clicks a button, using a path that the user input. I need a regex that only matches relative URLs inside…
Reem Rizk
  • 33
  • 6
0
votes
1 answer

How to deal with relative links from a subversion repository when branching and tagging?

We have a project which contains many subprojects, which contain relative links to files outside their trunk, to a parallel project containing shared code, for…
pix
  • 5,052
  • 2
  • 23
  • 25
0
votes
1 answer

How to properly include the directory in distutils

I have a pretty basic question regarding building Python extensions with C++. In one of my header files, I have a line #include "veins_python/veins_python.h", which is a relative path that Python does not see. When I run python setup.py build, I…
Python
  • 359
  • 2
  • 16
0
votes
1 answer

How to set a relative path/How to use $(SolutionDir)

I'm trying to make a project compile no matter where it is cloned, but I don't know how to write the relative path in relation to the solution location, for now this is how it looks I tried something with $(SolutionDir) but i don't know how to go…
Vasile Mihai
  • 103
  • 6
0
votes
0 answers

Relative Import Errors Python

the tree of the project is C:. ├───.pytest_cache │ └───v │ └───cache ├───alembic ├───app │ ├───models │ │ └───__pycache__ │ ├───routers │ │ └───__pycache__ │ └───__pycache__ ├───tests │ └───__pycache__ ├───venv │ …
user16792099
0
votes
0 answers

How to add Relative path to app config file?

I have the following windows form c# application .. I just want to add a relative path to app.config file . to make my app connect to the database right: here's the connection string: enter image description here
0
votes
1 answer

Dir.chdir(File.dirname(__FILE__)) throws Errno::ENOENT

I got a method where I use Dir.chdir(File.dirname(__FILE__)) inside. I am using it so that I can run the ruby file from anywhere and not get this error: No such file or directory @ rb_sysopen - 'filename' (Errno::ENOENT). Using the method for the…
0
votes
2 answers

Why absolute-path is not working in my project?

the hierarchy of my files looks something like: BACKEND(COMPLETE) ->Routers ->userrouter.js ->login.html I wanted the access of my login.html file in userrouter.js for which I copied the Path(absolute) of the login.html file. But I am getting…
0
votes
2 answers

Relative paths depend on where I run the python script

So I have this font ./files/resources/COMIC.TTF And I reference the font like this: font = pygame.font.Font('./files/resources/COMIC.TTF', 12) So I ran this on cmd python files/opencv_ball_tracker.py and sure enough it works. But when I cd files…
Jeffery Tang
  • 314
  • 3
  • 14
0
votes
0 answers

what is correct relative path for files in a USB - android browser

I want to use a HTML file in USD drive which is connected to android phone using a USB connector. There is an image in the webpage with the following code (the image is in same folder with HTML file): I have also tested…
Ali Sheikhpour
  • 10,475
  • 5
  • 41
  • 82
0
votes
1 answer

Error on creating relative path in Jupyter Notebook using read_csv

I am a beginner with Jupyter Notebook but here's what I am having trouble with: I have created a Python3 file using Jupyter Notebook and have imported my csv file using read_csv. Then, I created a new folder (named Park )- that would include my…
Nel L
  • 135
  • 2
  • 10
0
votes
1 answer

html relative path not working even though vs code displays the image using the relative path

i am practicing html using my computer and i run the html file using the "Live Server" add-on in vscode. the image doesnt show up with the relative path: tx my root folder is the css folder,…
nubprog
  • 35
  • 10
1 2 3
99
100