Update Adobe2020Importer.py
Linted
@@ -32,12 +32,6 @@ Imports Adobe 2020 titles found in running users ~/Downloads
'''
-
-# Version
-__version__ = '1.0'
-
-
-# Standard Imports
import argparse
import glob
import os
@@ -45,7 +39,9 @@ import subprocess
import sys
-# Script
+__version__ = '1.1'
+
+
def main():
'''Gimme some main'''
@@ -70,14 +66,6 @@ def main():
pkg_checker(adobe_folders)
-def file_len(run_day):
- ''' For each weekdays recipe list, return a count '''
-
- line_count = len(open(ADOBE_LIST).readlines())
-
- return line_count
-
-
def pkg_checker(adobe_folders):
''' Check that we have the Install_pkg's & proceed if we do'''
@@ -145,10 +133,10 @@ if __name__ == '__main__':
sys.exit(1)
# Parse recipe type argument
- parser = argparse.ArgumentParser()
- parser.add_argument('type', type=str, help='Recipe type, either "munki" or "jss"')
- args = parser.parse_args()
- RECIPE_TYPE = args.type.lower()
+ PARSER = argparse.ArgumentParser()
+ PARSER.add_argument('type', type=str, help='Recipe type, either "munki" or "jss"')
+ ARG_PARSER = PARSER.parse_args()
+ RECIPE_TYPE = ARG_PARSER.type.lower()
# Constants
DOWNLOADS_PATH = os.path.expanduser('~/Downloads/')
