Skip to content

Commit

Permalink
Resource edit fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fernanqv committed Jun 22, 2022
1 parent bc808bb commit 9f2c321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drm4g/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from drm4g.core.im_mad import GwImMad
from os.path import expanduser, join, dirname, exists, basename, expandvars


def process_is_runnig( pid ):
"""
Check is a process is running given a file
Expand Down Expand Up @@ -376,7 +377,7 @@ def edit( self ) :
Edit resources file.
"""
console_logger.debug( "Editing '%s' file", DRM4G_RESOURCES_CONF )
os.system( "%s %s", os.environ.get('EDITOR', 'nano') , DRM4G_RESOURCES_CONF )
os.system( "%s %s" % ( os.environ.get('EDITOR', 'vi') , DRM4G_RESOURCES_CONF ))
self.check( )

def list( self ) :
Expand Down

0 comments on commit 9f2c321

Please sign in to comment.