-
Notifications
You must be signed in to change notification settings - Fork 385
Update searchcommands app example #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -0,0 +1 @@ | |||
| /Users/xcheng/repo/github/splunk-sdk-python/splunklib No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git ignore this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
.vscode/launch.json
Outdated
| @@ -0,0 +1,67 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git ignore this .vscode dir?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| process = Popen(recording.get_args(command), stdin=ifile, stderr=PIPE, stdout=PIPE) | ||
| env = os.environ.copy() | ||
| env['PYTHONPATH'] = ":".join(sys.path) | ||
| process = Popen(recording.get_args(command), stdin=ifile, stderr=PIPE, stdout=PIPE, env=env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding
env['PYTHONPATH'] = ":".join(sys.path)
I think you want os.pathsep here so that it's ":" for unix and ";" for Windows.
https://docs.python.org/2/library/os.html#os.pathsep
shakeelmohamed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐍
searchcommands_app example now packages splunklib under lib folder instead of bin folder based on best practice