Questions tagged [executable-path]

36 questions
128
votes
12 answers

How to resolve "dyld: Library not loaded: @executable_path.." error

I was trying to check the AWS-CLI version on my MAC OS X. And the below error hit back: dyld: Library not loaded: @executable_path/../.Python Referenced from: /usr/local/aws/bin/python Reason: image not found Abort trap: 6 Any relevant inputs…
Manogna Mujje
  • 1,291
  • 2
  • 7
  • 4
16
votes
1 answer

How to get the full path of the current executable file in VB?

I have created one windows application using VB. Whenever I executing the exe, I want to get the current directory of the exe file programatically. For example, Now, I am executing the exe file in d:\myApp\test.exe. Whenever I double click the exe…
Saravanan
  • 11,372
  • 43
  • 143
  • 213
8
votes
3 answers

What is the right way of getting my WinForms application's name?

I could do this return Assembly.GetEntryAssembly().GetName().Name; or return Path.GetFileNameWithoutExtension(Application.ExecutablePath); Would both give the desired application name always? If so which is a more standard way of getting…
nawfal
  • 70,104
  • 56
  • 326
  • 368
8
votes
2 answers

overriding @executable_path in a DLL loaded with dlopen()

Operating system is MacOS X, specifically 10.5 (Leopard) on a PowerPC G4, but I have the same problem on an x86 running 10.6. I am writing an application which dynamically loads a DLL. The DLL (let's call it foo.dylib) is part of another…
Thomas Pornin
  • 72,986
  • 14
  • 147
  • 189
3
votes
4 answers

How to pass env variables to GNOME

I want to replace some utilities(like telnet) with transparent wrappers(with loggers). At first I used aliases, that worked nicely at the command line but gnome doesn't understand shell aliases so that when people would launch the utilities as the…
Roman A. Taycher
  • 18,619
  • 19
  • 86
  • 141
3
votes
1 answer

Where to put batch file in Windows so that it is always accessible, without changing the PATH?

I have a NSIS installer for a program and change PATH settings to make the program always accessible from the command-line. Manipulating the PATH has however some adverse effect, such as other programs picking up DLLs from that directory. In order…
eudoxos
  • 18,545
  • 10
  • 61
  • 110
3
votes
0 answers

Attempting to get executable path of process returns null

I have a piece of C# code that goes through all the running processes, finds a specific one, and gets its ExecutablePath. Problem is that, although it manages to find the wanted process, attempting to get the ExecutablePath returns null. Now, I did…
Mohamed Moustafa
  • 279
  • 4
  • 11
2
votes
3 answers

Undetected chromedriver not working with selenium 4.10

Just upgraded to selenium 4.10 and got: TypeError: init() got an unexpected keyword argument 'executable_path' I read that executable path not needed in latest version and the fix is: from selenium.webdriver.chrome.service import Service service =…
2
votes
0 answers

Pyusb and Libusb giving NoBackendError on MacOS

I'm on MacOS Big Sur trying to run rfcat. I am running anaconda as well and I have set up an environment with Python2.7 when I originally got errors with Python3.x. I have downloaded the pyusb, pyreadline, ipython, PySide2, and the libusb…
2
votes
1 answer

Determining location of a Clickonce application within Clickonce Cache

I have an application deployed via ClickOnce, along with a separate .NET console application that needs access to the ClickOnce application's installation directory. By the application's installation directory, I mean: "C:\Documents and…
Osbourne Ruddock
  • 465
  • 4
  • 20
2
votes
2 answers

Can I get the ExecutablePath from a System.Management.EventArrivedEventArgs object?

I'm using a System.Management.ManagementEventWatcher to get the process ID and executable path for a started process: private void startWatcher_EventArrived(Object sender, EventArrivedEventArgs e) { String processID =…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
1
vote
1 answer

PHP executable path in Adobe Brackets

I am running Adobe Brackets on a 2017 iMac (Retina - 27 inch) with macOS Monterey 12.2 I want to point the path to PHP inside of MAMP. What is the correct json format and code to do this in Bracket's brackets.json file? I've seen this code for…
drcreative
  • 29
  • 5
1
vote
0 answers

No output from Julia via VScode

I've just upgraded from Julia-1.5 to Julia 1.6 and also installed the latest version of VScode on my Mac. Till now I made only one setting: "julia.executablePath": "/home/Applications/julia-1.6/Contents/Resources/julia/bin/julia" Am not sure if this…
JdG
  • 19
  • 4
1
vote
0 answers

Chromedriver executable path problems even though executable path is in PATH

I'm working on a website automation program for 1 month, all went well and worked perfectly fine until I had to reset my laptop to factory settings due to a black screen that kept on going after turning on the laptop. I'm running a laptop with…
1
vote
1 answer

UWA C# Get executable path of an XML file

I am developing an Universal Windows App on C# in Visual Studio 2017. I am working with xml files for saving data. The problem is that when I try to run the builded app, using the executable file, it just doesn't open. I figured out it might be…
1
2 3