summary refs log tree commit diff stats
path: root/ranger/applications.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/applications.py')
-rw-r--r--ranger/applications.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ranger/applications.py b/ranger/applications.py
index 4c329a05..beefba9f 100644
--- a/ranger/applications.py
+++ b/ranger/applications.py
@@ -6,6 +6,10 @@ p: redirect output to the pager
 
 An uppercase key ensures that a certain flag will not be used.
 """
+
+import os, sys
+from ranger.ext.waitpid_no_intr import waitpid_no_intr
+
 ALLOWED_FLAGS = 'sdpSDP'
 
 class Applications(object):
@@ -24,14 +28,12 @@ class Applications(object):
 		"""Returns a list with all application functions"""
 		return [x[4:] for x in self.__class__.__dict__ if x.startswith('app_')]
 
-import os, sys
 null = open(os.devnull, 'a')
 
 def run(*args, **kw):
 	"""Run files with the specified parameters"""
 	from subprocess import Popen
 	from subprocess import PIPE
-	from ranger.ext.waitpid_no_intr import waitpid_no_intr
 
 	flags, fm = kw['flags'], kw['fm']
 	for flag in flags: