Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9a58312

Browse files
Adding alternative unix path resolver
1 parent f0f21e7 commit 9a58312

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ import sys
253253

254254
# Python path. This will pick the current directory where the script is located.
255255
current_dir = os.path.dirname(sys.argv[0])
256+
# OR
257+
current_shell_dir = os.path.dirname(os.path.abspath(__file__))
256258

257259
# Shell path. This will pick "current_dir" and replace any possible empty spaces with "\" and other fixes to be compatible with any unix-like Shell.
258260

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /