Skip to content

Conversation

@xuchen509
Copy link

searchcommands_app example now packages splunklib under lib folder instead of bin folder based on best practice

@xuchen509 xuchen509 requested a review from a team January 28, 2019 23:51
@@ -0,0 +1 @@
/Users/xcheng/repo/github/splunk-sdk-python/splunklib No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git ignore this file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,67 @@
{
Copy link
Contributor

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?

Copy link
Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice :)

Copy link
Contributor

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

Copy link
Contributor

@shakeelmohamed shakeelmohamed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐍

@xuchen509 xuchen509 merged commit f489b05 into develop Jan 30, 2019
@xuchen509 xuchen509 deleted the update-searchcommands-app-example branch January 30, 2019 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants