mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 06:44:23 +01:00
Bundle imports
This commit is contained in:
@@ -5,9 +5,8 @@ import os.path
|
|||||||
from os import access, W_OK
|
from os import access, W_OK
|
||||||
import sys
|
import sys
|
||||||
from re import compile
|
from re import compile
|
||||||
from random import sample
|
from random import sample, choice
|
||||||
from math import ceil
|
from math import ceil
|
||||||
import random
|
|
||||||
|
|
||||||
|
|
||||||
class InputHelper(object):
|
class InputHelper(object):
|
||||||
@@ -216,7 +215,7 @@ class InputHelper(object):
|
|||||||
|
|
||||||
if arguments.random:
|
if arguments.random:
|
||||||
files = InputHelper._get_files_from_directory(arguments.random)
|
files = InputHelper._get_files_from_directory(arguments.random)
|
||||||
random_file = random.choice(files)
|
random_file = choice(files)
|
||||||
|
|
||||||
if arguments.command:
|
if arguments.command:
|
||||||
commands.add(arguments.command.rstrip('\n'))
|
commands.add(arguments.command.rstrip('\n'))
|
||||||
|
|||||||
Reference in New Issue
Block a user