Commit e4c9aa8e authored by Marius Wachtler's avatar Marius Wachtler

Add '' to sys.path when not in repr or command execution mode

parent cc20131a
......@@ -158,6 +158,11 @@ static int main(int argc, char** argv) {
module_search_path = split_str.second;
}
if (!fn) {
// if we are in repl or command mode prepend "" to the path
prependToSysPath("");
}
if (!Py_NoSiteFlag) {
try {
std::string module_name = "site";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment