File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def zip_build():
28
28
now = datetime .now ()
29
29
now_str = now .strftime ( "%m_%d_%H_%M" )
30
30
31
- file_utils .zip_file_directory ( latest_build_dir , builds_dir + "HaberDashers_ " + now_str + ".zip" )
31
+ file_utils .zip_file_directory ( latest_build_dir , builds_dir + game_name + "_ " + now_str + ".zip" )
32
32
33
33
34
34
if __name__ == '__main__' :
Original file line number Diff line number Diff line change 4
4
def zip_file_directory ( directory_path , zip_file_path ):
5
5
zip_file = zipfile .ZipFile ( zip_file_path , 'w' , zipfile .ZIP_STORED )
6
6
7
- prefix_path = directory_path .split ( 'WindowsNoEditor/' )
8
-
9
7
for root , dirs , files in os .walk ( directory_path ):
10
8
for file in files :
11
- relative_path = os .path .relpath ( root , prefix_path [ 0 ] )
9
+ relative_path = os .path .relpath ( root , directory_path )
12
10
13
11
zip_file .write ( os .path .join ( root , file ), relative_path + '\\ ' + file )
14
12
You can’t perform that action at this time.
0 commit comments