forked from DetachHead/rebased
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelperPackage.java
More file actions
38 lines (30 loc) · 1.36 KB
/
Copy pathHelperPackage.java
File metadata and controls
38 lines (30 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.intellij.execution.configurations.ParamsGroup;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import java.util.Map;
public interface HelperPackage {
void addToPythonPath(@NotNull Map<String, String> environment);
/**
* @return entry (directory or ZIP archive) that will be added to <tt>PYTHONPATH</tt> environment variable before the process is started.
*/
@NotNull
String getPythonPathEntry();
/**
* @return entries (directory or ZIP archive) that should be added to
* <tt>PYTHONPATH</tt> environment variable before the process is started.
*/
@NotNull
List<String> getPythonPathEntries();
void addToGroup(@NotNull ParamsGroup group, @NotNull GeneralCommandLine cmd);
/**
* @return the first parameter passed to Python interpreter that indicates which script to run. For scripts started as modules it's
* module name with <tt>-m</tt> flag, like <tt>-mpackage.module.name</tt>, and for average helpers it's full path to the script.
*/
@NotNull
String asParamString();
@NotNull
GeneralCommandLine newCommandLine(@NotNull String sdkPath, @NotNull List<String> parameters);
}