Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Restore mistakenly removed popen
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed Feb 13, 2018
1 parent 3b932a5 commit 4aa620b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions poor/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import re
import shutil
import stat
import subprocess
import sys
import time
import traceback
Expand Down Expand Up @@ -390,6 +391,10 @@ def path2uri(path):
"""Convert local filepath to URI."""
return "file://{}".format(urllib.parse.quote(path))

def popen(*args):
"""Run command `args` without waiting for it to complete."""
subprocess.Popen(args)

def read_json(path):
"""Read data from JSON file at `path`."""
try:
Expand Down

0 comments on commit 4aa620b

Please sign in to comment.