aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/raw_format.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/raw_format.py b/lib/raw_format.py
index 2d240a0..0cce0e9 100755
--- a/lib/raw_format.py
+++ b/lib/raw_format.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# imported from project Mintstick, by Clement Lefebvre
# https://github.com/linuxmint/mintstick/
@@ -24,7 +24,7 @@
import os, sys
import getopt
-import parted
+
from subprocess import call
sys.path.append('/usr/lib/isodumper')
@@ -60,7 +60,7 @@ def get_mounted(target):
sys.exit(6)
def raw_format(device_path, fstype, volume_label, uid, gid):
-
+ import parted
do_umount(device_path)
# First erase MBR and partition table , if any