TortoiseSVN reports conflict, but no conflict can be found

Skipped obstructing working copy this means that there’s a working copy folder in the way: your update wants to add a folder with name ‘project’, but you already have a versioned folder ‘project’ in your working copy. Maybe you moved that folder from another working copy? Or that folder is its own working copy (if … Read more

Windows service – get current directory

You can set the current directory to the directory that your service is running from by including this line in your code: System.IO.Directory.SetCurrentDirectory(System.AppDomain.CurrentDomain.BaseDirectory); The important part of this is: System.AppDomain.CurrentDomain.BaseDirectory That returns the path to the directory your service is running from.

How to get the current working directory using python 3? [duplicate]

It seems that IDLE changes its current working dir to location of the script that is executed, while when running the script using cmd doesn’t do that and it leaves CWD as it is. To change current working dir to the one containing your script you can use: import os os.chdir(os.path.dirname(__file__)) print(os.getcwd()) The __file__ variable … Read more

Shell script current directory?

As already mentioned, the location will be where the script was called from. If you wish to have the script reference it’s installed location, it’s quite simple. Below is a snippet that will print the PWD and the installed directory: #!/bin/bash echo “Script executed from: ${PWD}” BASEDIR=$(dirname $0) echo “Script location: ${BASEDIR}”