Skip to content

Commit f089951

Browse files
NightlyBuildsNightlyBuilds
authored andcommitted
Fixed some hardcoded references in zipping process
1 parent 05c8ab6 commit f089951

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

BuildGame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def zip_build():
2828
now = datetime.now()
2929
now_str = now.strftime( "%m_%d_%H_%M" )
3030

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" )
3232

3333

3434
if __name__ == '__main__':

FileUtils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
def zip_file_directory( directory_path, zip_file_path ):
55
zip_file = zipfile.ZipFile( zip_file_path, 'w', zipfile.ZIP_STORED )
66

7-
prefix_path = directory_path.split( 'WindowsNoEditor/' )
8-
97
for root, dirs, files in os.walk( directory_path ):
108
for file in files:
11-
relative_path = os.path.relpath( root, prefix_path[0] )
9+
relative_path = os.path.relpath( root, directory_path )
1210

1311
zip_file.write( os.path.join( root, file ), relative_path + '\\' + file )
1412

0 commit comments

Comments
 (0)