# Little hack to put out_dir_Path outside the strings
src.replace_in_file(filepath, 'r"out_dir_Path', 'out_dir_Path + r"' )
- src.replace_in_file(filepath, "'out_dir_Path + ", "out_dir_Path + '" )
+ src.replace_in_file(filepath, "r'out_dir_Path + ", "out_dir_Path + r'" )
# A hack to put a call to a file for distene licence.
# It does nothing to an application that has no distene product
:return: The path of the resulting archive
:rtype: str
'''
- path_targz = os.path.join(dir_name, archive_name + PACKAGE_EXT)
+ path_targz_prod = os.path.join(where, prod_name + PACKAGE_EXT)
tar_prod = tarfile.open(path_targz_prod, mode='w:gz')
local_path = prod_info.source_dir
tar_prod.add(local_path,
import pwd
return pwd.getpwuid(os.getuid())[0]
-def get_windows_os_label():
- '''returns the SAT convention used for Windows labeling '''
- return "W" # in order to fulfill the 8196 length constraint!
def get_distribution(codes):
'''Gets the code for the distribution
:rtype: str
'''
if is_windows():
- return get_windows_os_label()
+ return "W"
# else get linux distribution description from platform, and encode it with code
lin_distrib = platform.dist()[0].lower()
'''
if is_windows():
- return platform.release()
+ return "64"
# get version from platform
dist_version=platform.dist()[1].split('.')