Update to new version of abstract module

Delete obsolete run config for singlemodulerunner
Autoformatting
This commit is contained in:
Lucas Noki 2019-12-22 02:45:19 +01:00 committed by Marcel Schwarz
parent 4c8815ad92
commit 5cae85fa0b
2 changed files with 7 additions and 30 deletions

View File

@ -1,24 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="ModuleDebugger" type="PythonConfigurationType" factoryName="Python">
<module name="linux-tools" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/SingleModuleRunner.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
</component>

View File

@ -1,13 +1,14 @@
from IModule import IModule
from AbstractModule import AbstractModule
from subprocess import call
import os
import shutil
class VimModule(IModule):
class VimModule(AbstractModule):
def __init__(self):
super().__init__()
def get_command(self):
def run(self):
plugins = [
("1. Colorschemes", "Plug 'https://github.com/rafi/awesome-vim-colorschemes.git'"),
@ -60,7 +61,7 @@ class VimModule(IModule):
with open("testfile", "w+") as vimrc_file:
vimrc_file.write("\n" + "call plug#begin('~/.vim/plugged')\n")
for element in clean_plugin_list:
selection = element -1
selection = element - 1
vimrc_file.write(plugins[selection][1] + "\n")
vimrc_file.write("call plug#end()\n")
@ -76,6 +77,6 @@ class VimModule(IModule):
else:
make_vimdir = """cd ~/Gitlab/linux-tools/ && mkdir testdirectory && cd testdirectory && mkdir autoload &&
cd autoload && touch test.txt"""
call(make_vimdir, shell=True)
call(make_vimdir, shell=True)
else:
print("Vim-Plug already installed!")
print("Vim-Plug already installed!")