@@ -1,8 +1,6 | |||||
1 | #import sys |
|
|||
2 | #from subprocess import * |
|
|||
3 |
|
||||
4 |
|
|
1 | #class BKmanager: | |
5 | # def __init__(self): |
|
2 | # def __init__(self): | |
|
3 | ||||
6 | from subprocess import * |
|
4 | from subprocess import * | |
7 | import sys |
|
5 | import sys | |
8 | import os |
|
6 | import os |
@@ -1,7 +1,7 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE Project SYSTEM "Project-4.6.dtd"> |
|
2 | <!DOCTYPE Project SYSTEM "Project-4.6.dtd"> | |
3 | <!-- eric4 project file for project jro_backup_manager --> |
|
3 | <!-- eric4 project file for project jro_backup_manager --> | |
4 |
<!-- Saved: 2010-05-16, |
|
4 | <!-- Saved: 2010-05-16, 21:21:21 --> | |
5 | <!-- Copyright (C) 2010 , --> |
|
5 | <!-- Copyright (C) 2010 , --> | |
6 | <Project version="4.6"> |
|
6 | <Project version="4.6"> | |
7 | <Language>en</Language> |
|
7 | <Language>en</Language> | |
@@ -19,6 +19,7 | |||||
19 | <Source>ui/__init__.py</Source> |
|
19 | <Source>ui/__init__.py</Source> | |
20 | <Source>functions/__init__.py</Source> |
|
20 | <Source>functions/__init__.py</Source> | |
21 | <Source>functions/functions.py</Source> |
|
21 | <Source>functions/functions.py</Source> | |
|
22 | <Source>functions/functions2.py</Source> | |||
22 | </Sources> |
|
23 | </Sources> | |
23 | <Forms> |
|
24 | <Forms> | |
24 | <Form>ui/MainWindow.ui</Form> |
|
25 | <Form>ui/MainWindow.ui</Form> |
@@ -14,6 +14,7 | |||||
14 | import subprocess |
|
14 | import subprocess | |
15 | import commands |
|
15 | import commands | |
16 | from functions import functions |
|
16 | from functions import functions | |
|
17 | from functions import functions2 | |||
17 |
|
18 | |||
18 | class MainWindow(QMainWindow, Ui_MainWindow): |
|
19 | class MainWindow(QMainWindow, Ui_MainWindow): | |
19 | """ |
|
20 | """ | |
@@ -366,8 +367,8 | |||||
366 | lines=var_file.readlines() # Se lee las lineas en el archivo y se almacenan en la lista |
|
367 | lines=var_file.readlines() # Se lee las lineas en el archivo y se almacenan en la lista | |
367 |
|
368 | |||
368 | # Se crea el archivo .print |
|
369 | # Se crea el archivo .print | |
369 |
var_file_print = open(var_Rpath_ppath+"/"+self.txtElabel.text()+"_"+ |
|
370 | var_file_print = open(var_Rpath_ppath+"/"+self.txtElabel.text()+"_"+functions.i2s(var_n)+".print","w") | |
370 |
var_file_print.write(self.txtElabel.text()+" "+ |
|
371 | var_file_print.write(self.txtElabel.text()+" "+functions.i2s(var_n)+"/"+str(self.var_n_files)+"\n") | |
371 | var_file_print.write("Year Doy Folder Set Time range\n") |
|
372 | var_file_print.write("Year Doy Folder Set Time range\n") | |
372 |
|
373 | |||
373 | #Se crean los archivos .print con los cuales se crearan los archivos .ps |
|
374 | #Se crean los archivos .print con los cuales se crearan los archivos .ps | |
@@ -446,7 +447,7 | |||||
446 | for var_n in range(0, self.var_n_files+1): |
|
447 | for var_n in range(0, self.var_n_files+1): | |
447 | print var_n |
|
448 | print var_n | |
448 |
|
449 | |||
449 |
file_iso=var_Rpath_iso+"/"+ |
|
450 | file_iso=var_Rpath_iso+"/"+functions.i2s(var_n)+".iso" | |
450 | file_dat=var_Rpath_ppath+"/"+self.txtElabel.text()+"_"+functions.i2s(var_n)+".dat" |
|
451 | file_dat=var_Rpath_ppath+"/"+self.txtElabel.text()+"_"+functions.i2s(var_n)+".dat" | |
451 |
|
452 | |||
452 | var_cmd = 'genisoimage -hide-joliet-trans-tbl -joliet-long -r ' |
|
453 | var_cmd = 'genisoimage -hide-joliet-trans-tbl -joliet-long -r ' |
General Comments 0
You need to be logged in to leave comments.
Login now