Base réécriture script package
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
import os, glob, subprocess
|
||||
import web, system
|
||||
|
||||
def get_available_profiles():
|
||||
profiles_dir = os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + "/../profiles")
|
||||
profile_files = glob.glob(profiles_dir + '/*.conf')
|
||||
return [os.path.splitext(os.path.basename(f))[0] for f in profile_files]
|
||||
|
||||
def get_workspace_dir():
|
||||
"""Return the absolute path to the tamarin workspace ($HOME/.tamarin)"""
|
||||
home = os.environ["HOME"]
|
||||
|
Reference in New Issue
Block a user