Python Script:
Code: Alles auswählen
__author__ = 'Robin'
import os, random
#Generate_Folder_Key
random.seed()
fk_temp=random.randint(100,100000)
fk=str(fk_temp)
#ISO Path
print("Path to your ISO File: ")
path_input=input()
path_iso=str(path_input)
ISO_PATH = path_iso
#Mount the ISO in your OS
os.system("mkdir /media/tmp_iso"+fk)
os.system("mount -o r,loop %s /media/tmp_iso"+fk % ISO_PATH)Fehler:
Code: Alles auswählen
Path to your ISO File:
/root/images/ubuntu-12.04.1-server-amd64.iso
Traceback (most recent call last):
File "repo.py", line 14, in <module>
os.system("mount -o r,loop %s /media/tmp_iso"+fk % ISO_PATH)
TypeError: not all arguments converted during string formatting
Warum findet der den Ordner nicht, welcher erstellt wurde bzw. mit dem "fk"=FolderKey versehen worden ist!?
Ich bitte um schnelle Hilfe
LG Robin
