relative-path Questions
5
Solved
I am trying to create links in my README.md that link to example code using a relative path, as opposed to the absolute path I am using now. For example, in the markdown file, if I use this:
[some...
Peculation asked 8/8, 2012 at 15:59
3
Solved
I have in the same folder a .bat and a .exe file.
I couldn't call the .exe file from the .bat unless I put the full absolute path to it.
Is there a way to don't specify the path?
Adactylous asked 28/4, 2010 at 15:2
5
I have an ASP.NET MVC page, where I am trying to show friendly URL's.
So, I have a Category View in the Home Controller, that accepts a categoryKey value to get the content of the page.
For insta...
Perfection asked 2/8, 2010 at 20:33
25
Example:
absolute="/foo/bar"
current="/foo/baz/foo"
# Magic
relative="../../bar"
How do I create the magic (hopefully not too complicated code...)?
Frankforter asked 2/4, 2010 at 1:42
4
Solved
I am making a package, and the modules within this package have code inside if __name__=='__main__': blocks for testing purposes. But my attempts to use relative imports in these modules causes err...
Chatman asked 2/2, 2019 at 3:18
3
Solved
In a question regarding a jQuery Ajax problem, the asker was trying to use a . in the beginning of a relative URL. I advised him to remove it, but have no idea what a dot actually does there.
His...
Travelled asked 15/5, 2011 at 14:0
10
Solved
We are working with a code repository which is deployed to both Windows and Linux - sometimes in different directories. How should one of the modules inside the project refer to one of the non-Pyth...
Waltner asked 13/8, 2009 at 9:22
11
Solved
I noticed some similar questions about this problem when I typed the title, but they seem not be in PHP. So what's the solution to it with a PHP function?
To be specified.
$a="/home/apache/a/a.ph...
Domingo asked 14/4, 2010 at 13:58
4
Solved
To create a shortcut with a relative path, set the target to the following.
%windir%\system32\cmd.exe /c start your_relpath\app.exe [your_args]
It is also straightforward to make the program run...
Terror asked 12/9, 2013 at 6:15
2
Solved
My Current Setup
I have created & published an npm package(in typescript) which internally refers to few font files residing in a public/fonts folder within it.
I'm then installing this packa...
Trademark asked 22/7, 2018 at 3:58
3
Solved
In my File-system my working directory is here:
C:\temp\a\b\c\d
and under b\bb there's file: tmp.txt
C:\temp\a\b\bb\tmp.txt
If I want to go to this file from my working directory, I'll use this...
Rescissory asked 8/8, 2016 at 12:22
5
Solved
I have a relative file path (for example "/res/example.xls") and I would like to get an InputStream Object of that file from that path.
I checked the JavaDoc and did not find a constructo...
Glossa asked 7/10, 2011 at 19:59
7
Solved
I have a folder for my client code, a folder for my server code, and a folder for code that is shared between them
Proj/
Client/
Client.py
Server/
Server.py
Common/
__init__.py
Common...
Pruinose asked 21/9, 2011 at 20:9
3
Solved
Here is a simple script:
$srcpth = "C:\Users\Mark\Desktop\dummy\"
$files = Get-ChildItem -Path $srcpth -File -Recurse
foreach ($f in $files) {
$filen = $f.Name
$filesize = $f.Length
...
Morphia asked 14/6, 2022 at 21:30
3
Solved
I have gone through many Python relative import questions but I can't understand the issue/get it to work.
My directory structure is:
Driver.py
A/
Account.py
__init__.py
B/
Test.py
__...
Bouillon asked 14/2, 2013 at 23:48
7
Solved
Say I am running Vim and pwd returns
/home/rafid/myproject
And say I am currently editing the file
/home/rafid/myproject/website/editpage.php
Is there any command that returns this for me?
w...
Text asked 24/12, 2010 at 9:0
9
Solved
I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP URIs like
http://example.com:8000/path
https://example.com:8000/path
to
ws://examp...
Claustral asked 2/5, 2012 at 2:25
8
Solved
Do I always have to specify absolute path for objects instantiated from std::fstream class? In other words, is there a way to specify just relative path to them such as project path?
Beachlamar asked 9/11, 2011 at 17:21
2
I want to use the library ebnf from NPM and create a bundle using rollup. Since the ebnf is installed to node_modules I also use the rollup plugin rollup-plugin-node-resolve.
The problem is that e...
Stodgy asked 6/2, 2018 at 22:1
2
Given an absolute Uri and a relative Uri or relative path, how do you get the absolute Uri pointing to the relative location?
For example, suppose we have the Uri for file:///android_asset/dir, po...
Dripping asked 15/9, 2015 at 15:37
5
Solved
I downloaded the linux Tor Browser package, which is a self-contained folder. I made a symlink to the run script:
$ ln -s torbrowser/start-tor-browser ~/bin/torbrowser
However, the link was brok...
Potsherd asked 19/7, 2013 at 2:10
3
Update: Just over six months after opening a support call to Microsoft it has been rejected, they claim it is not a bug (since the documentation doesn't explicitly say that the behaviour seen isn't...
Whiffler asked 9/8, 2009 at 14:16
11
Solved
Given a path such as "mydir/myfile.txt", how do I find the file's absolute path in Python? E.g. on Windows, I might end up with:
"C:/example/cwd/mydir/myfile.txt"
Pastose asked 9/9, 2008 at 10:19
21
Solved
I'm building a simple helper script for work that will copy a couple of template files in our code base to the current directory. I don't, however, have the absolute path to the directory whe...
Clerissa asked 27/5, 2009 at 21:43
8
Solved
I have a module in the parent directory of my script and I would like to 'use' it.
If I do
use '../Foo.pm';
I get syntax errors.
I tried to do:
push @INC, '..';
use EPMS;
and .. apparently ...
Waylin asked 8/10, 2008 at 22:8
© 2022 - 2024 — McMap. All rights reserved.