Skip to content
Snippets Groups Projects
Commit f562ee94 authored by Seblu's avatar Seblu
Browse files

Add python 2.7 argparse in installsytems

Can be removed when min default will be python 2.7
parent 26aaa96f
No related branches found
No related tags found
No related merge requests found
...@@ -7,12 +7,13 @@ InstallSystems Image Manipulation Tool ...@@ -7,12 +7,13 @@ InstallSystems Image Manipulation Tool
''' '''
import os import os
import argparse
import time import time
import datetime import datetime
import installsystems import installsystems
from installsystems.printer import * from installsystems.printer import *
from installsystems.image import SourceImage from installsystems.image import SourceImage
# The following import can be removed when min version will be python 2.7
import installsystems.argparse as argparse
class DebugAction(argparse.Action): class DebugAction(argparse.Action):
'''Set installsystems in debug mode. Argparse callback''' '''Set installsystems in debug mode. Argparse callback'''
......
...@@ -7,7 +7,6 @@ InstallSystems Installation Tool ...@@ -7,7 +7,6 @@ InstallSystems Installation Tool
''' '''
import os import os
import argparse
import time import time
import datetime import datetime
import installsystems import installsystems
...@@ -16,6 +15,8 @@ from installsystems.printer import * ...@@ -16,6 +15,8 @@ from installsystems.printer import *
from installsystems.repository import RepositoryCache from installsystems.repository import RepositoryCache
from installsystems.image import PackageImage from installsystems.image import PackageImage
from installsystems.config import ConfigFile from installsystems.config import ConfigFile
# The following import can be removed when min version will be python 2.7
import installsystems.argparse as argparse
class DebugAction(argparse.Action): class DebugAction(argparse.Action):
'''Set installsystems in debug mode. Argparse callback''' '''Set installsystems in debug mode. Argparse callback'''
......
...@@ -7,12 +7,13 @@ InstallSystems Repository Manipulation Tool ...@@ -7,12 +7,13 @@ InstallSystems Repository Manipulation Tool
''' '''
import os import os
import argparse
import installsystems import installsystems
from installsystems.printer import * from installsystems.printer import *
from installsystems.repository import Repository from installsystems.repository import Repository
from installsystems.image import PackageImage from installsystems.image import PackageImage
from installsystems.config import ConfigFile from installsystems.config import ConfigFile
# The following import can be removed when min version will be python 2.7
import installsystems.argparse as argparse
class DebugAction(argparse.Action): class DebugAction(argparse.Action):
'''Set installsystems in debug mode. Argparse callback''' '''Set installsystems in debug mode. Argparse callback'''
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment