Fixed automatic filename generation
This commit is contained in:
parent
f6f218be43
commit
8f2b621ce5
1 changed files with 6 additions and 2 deletions
|
|
@ -203,8 +203,12 @@ class CaptureObject(object):
|
|||
Construct a full file path, based on filename, folder, and file format.
|
||||
Defaults to UUID.
|
||||
"""
|
||||
global TEMP_CAPTURE_PATH
|
||||
return os.path.join(self.folder, self.filename) # Full file name by joining given folder to given name
|
||||
global TEMP_CAPTURE_PATH, BASE_CAPTURE_PATH
|
||||
if self.temporary:
|
||||
base_dir = TEMP_CAPTURE_PATH
|
||||
else:
|
||||
base_dir = BASE_CAPTURE_PATH
|
||||
return os.path.join(base_dir, self.filename) # Full file name by joining given folder to given name
|
||||
|
||||
def split_file_path(self, filepath):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue