Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Add mapper launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Nov 6, 2019
1 parent 4fbdc96 commit 1cb0b7d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions guiscrcpy/guiscrcpy-mapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import os
import sys
import platform
parser = argparse.ArgumentParser()
parser.add_argument('-r', '--reset', action="store_true", help="Remove prefernces")
args = parser.parse_args()
if (platform.system() == 'Windows'):
cfgpath = os.path.expanduser("~/AppData/Local/guiscrcpy/")
else:
if (os.getenv('XDG_CONFIG_HOME') is None):
cfgpath = os.path.expanduser("~/.config/guiscrcpy/")
else:
cfgpath = os.getenv('XDG_CONFIG_HOME').split(":")[0] + "/guiscrcpy/"

if (args.reset):
os.remove(cfgpath+"guiscrcpy.mapper.json")
print("FILE RESET")

sys.exit()



import guiscrcpy
patz = list(guiscrcpy.__path__)[0]
import re
import sys



sys.path.append(patz)
sys.path.append('')
# print("PATH: ", sys.path)
from guiscrcpy import mapper
mapper.file_check()
import os
os.chdir(patz)

0 comments on commit 1cb0b7d

Please sign in to comment.