Skip to content

Commit

Permalink
import signal
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Aug 31, 2017
1 parent 0cd670e commit 05b82d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions picopore/parse_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,25 @@

import os
import sys
import subprocess
import warnings

from argparse import ArgumentParser, ArgumentError, Action, RawDescriptionHelpFormatter
from builtins import input

from picopore.version import __version__

def checkDeprecatedArgs():
import subprocess
import warnings
import signal
args = sys.argv[1:]
if "--realtime" in args:
args.remove('--realtime')
args = ['picopore-realtime'] + args
warnings.warn("picopore --realtime will be deprecated in 1.3.0. Use picopore-realtime instead.",FutureWarning)
warnings.warn("picopore --realtime will be deprecated in 2.0. Use picopore-realtime instead.",FutureWarning)
elif "--test" in args:
args.remove('--test')
args = ['picopore-test'] + args
warnings.warn("picopore --test will be deprecated in 1.3.0. Use picopore-test instead.",FutureWarning)
warnings.warn("picopore --test will be deprecated in 2.0. Use picopore-test instead.",FutureWarning)
else:
return
p = subprocess.Popen(args)
Expand Down

0 comments on commit 05b82d2

Please sign in to comment.