Python os.path.extend() Examples
The following are 7
code examples of os.path.extend().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
os.path
, or try the search function
.
Example #1
Source File: PyShell.py From oss-ftp with MIT License | 5 votes |
def transfer_path(self, with_cwd=False): if with_cwd: # Issue 13506 path = [''] # include Current Working Directory path.extend(sys.path) else: path = sys.path self.runcommand("""if 1: import sys as _sys _sys.path = %r del _sys \n""" % (path,))
Example #2
Source File: PyShell.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def transfer_path(self, with_cwd=False): if with_cwd: # Issue 13506 path = [''] # include Current Working Directory path.extend(sys.path) else: path = sys.path self.runcommand("""if 1: import sys as _sys _sys.path = %r del _sys \n""" % (path,))
Example #3
Source File: PyShell.py From ironpython3 with Apache License 2.0 | 5 votes |
def transfer_path(self, with_cwd=False): if with_cwd: # Issue 13506 path = [''] # include Current Working Directory path.extend(sys.path) else: path = sys.path self.runcommand("""if 1: import sys as _sys _sys.path = %r del _sys \n""" % (path,))
Example #4
Source File: f_t_parser_ff.py From ryu with Apache License 2.0 | 5 votes |
def get_bck_path(pp, dp): path = [] idx_in = pp.index(dp[0]) idx_out = pp.index(dp[-1]) path.extend(pp[0:idx_in]) path.extend(dp) path.extend(pp[idx_out+1:]) return path
Example #5
Source File: PyShell.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def transfer_path(self, with_cwd=False): if with_cwd: # Issue 13506 path = [''] # include Current Working Directory path.extend(sys.path) else: path = sys.path self.runcommand("""if 1: import sys as _sys _sys.path = %r del _sys \n""" % (path,))
Example #6
Source File: PyShell.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def transfer_path(self, with_cwd=False): if with_cwd: # Issue 13506 path = [''] # include Current Working Directory path.extend(sys.path) else: path = sys.path self.runcommand("""if 1: import sys as _sys _sys.path = %r del _sys \n""" % (path,))
Example #7
Source File: PyShell.py From BinderFilter with MIT License | 4 votes |
def transfer_path(self, with_cwd=False): if with_cwd: # Issue 13506 path = [''] # include Current Working Directory path.extend(sys.path) else: path = sys.path self.runcommand("""if 1: import sys as _sys _sys.path = %r del _sys \n""" % (path,))