Tried fixing Windows paths and added an 'Open Project' dialog.

This commit is contained in:
Joey Payne 2016-01-07 07:49:24 -07:00
commit 66431d2d14
3 changed files with 108 additions and 15 deletions

View file

@ -39,13 +39,20 @@ def get_data_path(dir_path):
parts = dir_path.split('/')
dirs = AppDirs('Web2Executable', 'Web2Executable')
data_path = path_join(dirs.user_data_dir, *parts)
if is_windows() and os.path.isabs(data_path):
data_path = u'//?/' + data_path
if not os.path.exists(data_path):
os.makedirs(data_path)
return data_path
def get_data_file_path(file_path):
parts = file_path.split('/')
data_path = get_data_path('/'.join(parts[:-1]))
if is_windows() and os.path.isabs(data_path):
data_path = u'//?/' + data_path
return path_join(data_path, parts[-1])
def log(*args):